Commits on Source (16)
-
Bryce Guinta authored
-
Claudiu Popa authored
-
Bryce Guinta authored
* Extend trailing-comma-tuple check to more complex assignments The previous implementation was too conservative with looking for previous tokens associated with assignment: It looked only at the immediately previous token, causing 'a = (5),' to not be caught. Now The current implementation backtracks to the start of the line to find an assignment substring. Fixes issue #1713
-
Ashley Whetter authored
-
Ashley Whetter authored
-
Daniel Miller authored
-
Claudiu Popa authored
-
Claudiu Popa authored
-
Martin authored
Shallow copy of os.environ doesn't work as people may expect. os.environ is not a dict object but rather a proxy object, so any changes made on the copy may have unexpected effects on os.environ Instead of copy.copy(os.environ) method os.environ.copy() should be used. Message id is: `shallow-copy-environ` See https://bugs.python.org/issue15373 for details. Resolves: #1301
-
Daniel Miller authored
-
Claudiu Popa authored
-
ttenhoeve-aa authored
-
Claudiu Popa authored
-
Martin authored
This TODO was resolved in: https://github.com/PyCQA/pylint/pull/1733#pullrequestreview-75930778 Resolves: #1301
-
hippo91 authored
Showing
- CONTRIBUTORS.txt 7 additions, 0 deletionsCONTRIBUTORS.txt
- ChangeLog 29 additions, 0 deletionsChangeLog
- doc/development_guide/contribute.rst 5 additions, 1 deletiondoc/development_guide/contribute.rst
- doc/whatsnew/1.8.rst 34 additions, 0 deletionsdoc/whatsnew/1.8.rst
- pylint/checkers/base.py 2 additions, 4 deletionspylint/checkers/base.py
- pylint/checkers/imports.py 28 additions, 10 deletionspylint/checkers/imports.py
- pylint/checkers/python3.py 4 additions, 1 deletionpylint/checkers/python3.py
- pylint/checkers/refactoring.py 44 additions, 22 deletionspylint/checkers/refactoring.py
- pylint/checkers/stdlib.py 19 additions, 1 deletionpylint/checkers/stdlib.py
- pylint/checkers/utils.py 23 additions, 0 deletionspylint/checkers/utils.py
- pylint/extensions/_check_docs_utils.py 7 additions, 2 deletionspylint/extensions/_check_docs_utils.py
- pylint/lint.py 8 additions, 0 deletionspylint/lint.py
- pylint/test/extensions/test_check_docs.py 29 additions, 7 deletionspylint/test/extensions/test_check_docs.py
- pylint/test/functional/trailing_comma_tuple.py 1 addition, 0 deletionspylint/test/functional/trailing_comma_tuple.py
- pylint/test/functional/trailing_comma_tuple.txt 1 addition, 0 deletionspylint/test/functional/trailing_comma_tuple.txt
- pylint/test/functional/wrong_import_order.py 1 addition, 0 deletionspylint/test/functional/wrong_import_order.py
- pylint/test/functional/wrong_import_order.txt 5 additions, 5 deletionspylint/test/functional/wrong_import_order.txt
- pylint/test/functional/wrong_import_order2.py 1 addition, 1 deletionpylint/test/functional/wrong_import_order2.py
- pylint/test/regrtest_data/py3k-disabled.rc 2 additions, 0 deletionspylint/test/regrtest_data/py3k-disabled.rc
- pylint/test/regrtest_data/py3k_errors_and_warnings.py 19 additions, 0 deletionspylint/test/regrtest_data/py3k_errors_and_warnings.py
pylint/test/regrtest_data/py3k-disabled.rc
0 → 100644