-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into documentationTen
- Loading branch information
Showing
15 changed files
with
228 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### This is a contrived example, to show how suppressed-message works. | ||
### First we enable all messages | ||
# pylint: enable=all | ||
|
||
### Here we disable two messages so we get two warnings | ||
# pylint: disable=locally-disabled, useless-suppression # [suppressed-message, suppressed-message] | ||
|
||
### Here we disable a message, so we get a warning for suppressed-message again. | ||
"A" # pylint: disable=pointless-statement # [suppressed-message, suppressed-message] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ ! | ||
``suppressed-message`` is simply a way to see messages that would be raised | ||
without the disable in your codebase. It should not be activated most | ||
of the time. See also ``useless-suppression`` if you want to see the message | ||
that are disabled for no reasons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# This is a placeholder for correct code for this message. | ||
"""Instead of a single string somewhere in the file, write a module docstring!""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
============ | ||
Governance | ||
============ | ||
|
||
How to become part of the project ? | ||
----------------------------------- | ||
|
||
How to become a contributor ? | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- Follow the code of conduct | ||
- Search by yourself before asking for help | ||
- Open an issue | ||
- Investigate an issue and report your finding | ||
- Open a merge request directly if you feel it's a consensual change | ||
|
||
Reporting a bug is being a contributor already. | ||
|
||
How to become a triager ? | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- Contribute for more than 3 releases consistently. | ||
- Do not be too opinionated, follow the code of conduct without requiring emotional | ||
works from the maintainers. It does not mean that disagreements are impossible, | ||
only that arguments should stay technical and reasonable so the conversation | ||
is civil and productive. | ||
- Have a maintainer suggest that you become triager, without you asking | ||
- Get unanimous approval or neutral agreement from current maintainers. | ||
|
||
How to become a maintainer ? | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- Contribute two big code merge requests over multiple releases (for example | ||
one checker in 2.13 and the following bug after release and one complicated | ||
bug fixes in 2.14). Otherwise contributing for more than 3 releases consistently | ||
with great technical and interpersonal skills. | ||
- Take ownership of a part of the code that is not maintained well at the moment | ||
or that you contributed personally (if we feel we can't merge something without | ||
your review, you're going to be able to merge those yourself soon). | ||
- Triage for multiple months (close duplicate, clean up issues, answer questions...) | ||
- Have an admin suggest that you become maintainer, without you asking | ||
- Get unanimous approval or neutral agreement from current maintainers. | ||
|
||
|
||
How to become an admin ? | ||
^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- Contribute for several hundreds of commits over a long period of time | ||
with excellent interpersonal skills and code quality. | ||
- Maintain pylint for multiple years (code review, triaging and maintenance tasks). | ||
- At this point probably have another admin leave the project or | ||
become inactive for years. | ||
- Have an admin suggest that you become an admin, without you asking. | ||
- Get unanimous approval or neutral agreement from current admins. | ||
|
||
|
||
How are decisions made ? | ||
------------------------ | ||
|
||
Everyone is expected to follow the code of conduct. pylint is a do-ocracy / democracy. | ||
You're not allowed to behave poorly because you contributed a lot. But if | ||
you're not going to do the future maintenance work, your valid opinions might not be | ||
taken into account by those that will be affected by it. | ||
|
||
What are the fundamental tenets of pylint development? | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
General: | ||
|
||
- We favor correctness over performance, because pylint is not used primarily | ||
for its performance. Performance is still important and needs to be taken into | ||
account from the get go. | ||
|
||
- We then favor false negatives over false positives if correctness is | ||
impossible to achieve. | ||
|
||
- We try to keep the configuration sane, but if there's a hard decision to take we | ||
add an option so that pylint is multiple sizes fit all (after configuration) | ||
|
||
Where to add a new checker or message: | ||
|
||
- Error messages (things that will result in an error if run) should be builtin | ||
checks, activated by default | ||
|
||
- Messages that are opinionated, even slightly, should be opt-in (added as :ref:`an extension<plugins>`) | ||
|
||
- We don't shy away from opinionated checks (like the while checker), but there's such a | ||
thing as too opinionated, if something is too opinionated it should be an external | ||
:ref:`pylint plugin<plugins>`. | ||
|
||
How are disagreements handled ? | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
When something is not consensual users, maintainers, and admins discuss until an | ||
agreement is reached. | ||
|
||
Depending on the difficulty of the discussion and the importance of a fast resolution, | ||
a decision can be taken: | ||
|
||
- Unanimously between discussion participants, contributors and maintainers (preferably) | ||
|
||
- By asking discussion participants for their opinions with an emoji survey in the | ||
issue and then using the majority if no maintainers feel strongly about the issue. | ||
|
||
- By majority of admins if no admins feel strongly about the issue. | ||
|
||
- By asking all users for their opinions in a new issue that will be pinned for | ||
multiple months before taking the decision if two admins feel strongly on an | ||
opposite side of the issue. Once the result is obvious the majority decision | ||
is not up for discussion anymore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Fix false negative for inconsistent-returns with while-loops. | ||
|
||
Closes #8280 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The governance model and the path to become a maintainer have been documented as | ||
part of our effort to guarantee that the software supply chain in which pylint is | ||
included is secure. | ||
|
||
Refs #8329 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
shallow-copy-environ:7:0:7:21::Using copy.copy(os.environ). Use os.environ.copy() instead. :UNDEFINED | ||
shallow-copy-environ:17:0:17:18::Using copy.copy(os.environ). Use os.environ.copy() instead. :UNDEFINED | ||
shallow-copy-environ:7:0:7:21::Using copy.copy(os.environ). Use os.environ.copy() instead.:UNDEFINED | ||
shallow-copy-environ:17:0:17:18::Using copy.copy(os.environ). Use os.environ.copy() instead.:UNDEFINED |