diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 21:04:12 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-12-19 21:04:12 +0100 |
commit | d2e2e7ded69b66386e2d9cc8e5fd275f11899d84 (patch) | |
tree | 1a51ad7ebe937ce98c7d603ea1ef06b7d1f4fd1a | |
parent | 1aca7a949182a276ddf094e29f5c2ba7a96a519f (diff) | |
download | pylint-git-d2e2e7ded69b66386e2d9cc8e5fd275f11899d84.tar.gz |
Take review into account
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/whatsnew/2.13.rst | 5 | ||||
-rw-r--r-- | pylint/lint/expand_modules.py | 2 | ||||
-rw-r--r-- | pylint/lint/pylinter.py | 2 |
4 files changed, 6 insertions, 6 deletions
@@ -30,9 +30,10 @@ Release date: TBA Closes #5499 -* pylint do not take into account files starting with ``.#`` anymore. Those are +* By default, pylint do not take into account files starting with ``.#`` anymore. Those are considered `emacs file lock`. See https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html. + This behavior can be reverted by redefining the ``ignore-patterns`` option. Closes #367 diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst index 18e417ce0..65ee043c9 100644 --- a/doc/whatsnew/2.13.rst +++ b/doc/whatsnew/2.13.rst @@ -32,8 +32,9 @@ Extensions Other Changes ============= -* pylint do not take into account files starting with ``.#`` anymore. Those are - considered `emacs file lock`_. +* By default, pylint do not take into account files starting with ``.#`` anymore. Those are + considered `emacs file lock`_. This behavior can be reverted by redefining the + ``ignore-patterns`` option. Closes #367 diff --git a/pylint/lint/expand_modules.py b/pylint/lint/expand_modules.py index e0395704e..69b066a8e 100644 --- a/pylint/lint/expand_modules.py +++ b/pylint/lint/expand_modules.py @@ -52,8 +52,6 @@ def expand_modules( basename = os.path.basename(something) if ( basename in ignore_list - # Emacs file locks see #367 - or basename.startswith(".#") or _is_in_ignore_list_re(os.path.basename(something), ignore_list_re) or _is_in_ignore_list_re(something, ignore_list_paths_re) ): diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index ba310483c..0de84fd0d 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -223,7 +223,7 @@ class PyLinter( "type": "regexp_csv", "metavar": "<pattern>[,<pattern>...]", "dest": "black_list_re", - "default": (), + "default": (r"^\.#",), "help": "Files or directories matching the regex patterns are" " skipped. The regex matches against base names, not paths.", }, |