Skip to content
Closed
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/data/messages/n/non-ascii-file-name/good.py

This file was deleted.

2 changes: 2 additions & 0 deletions doc/data/messages/n/non-ascii-file-name/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
py-version = 3.4
4 changes: 3 additions & 1 deletion doc/user_guide/checkers/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,9 @@ Nonascii-Checker checker Messages
interoperability. Further reading: -
https://peps.python.org/pep-0489/#export-hook-name -
https://peps.python.org/pep-0672/#confusing-features -
https://bugs.python.org/issue20485
https://bugs.python.org/issue20485 -
https://github.com/python/cpython/issues/64684#issuecomment-1093644763 -
https://terpconnect.umd.edu/~zben/Web/CharSet/htmlchars.html
:non-ascii-name (C2401): *%s name "%s" contains a non-ASCII character, consider renaming it.*
Used when the name contains at least one non-ASCII unicode character. See
https://peps.python.org/pep-0672/#confusing-features for a background why
Expand Down
2 changes: 2 additions & 0 deletions pylint/checkers/non_ascii_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class NonAsciiNameChecker(base_checker.BaseChecker):
"- https://peps.python.org/pep-0489/#export-hook-name\n"
"- https://peps.python.org/pep-0672/#confusing-features\n"
"- https://bugs.python.org/issue20485"
"- https://github.com/python/cpython/issues/64684#issuecomment-1093644763"
"- https://terpconnect.umd.edu/~zben/Web/CharSet/htmlchars.html"
),
),
# First %s will always be "module"
Expand Down