Skip to content

Commit e1b2cd8

Browse files
committed
Enabled ruff PLC ruleset for Pylint naming conventions and exempted one example file
1 parent f0ab9b9 commit e1b2cd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ select = [
195195
# "PERF", # Perflint (warn about performance issues)
196196
# "PGH", # pygrep-hooks (force specific rule codes when ignoring type or linter issues on a line)
197197
# "PIE", # flake8-pie (eliminate unnecessary use of pass, range starting at 0, etc.)
198-
# "PLC", # Pylint Conventions
198+
"PLC", # Pylint Conventions
199199
"PLE", # Pylint Errors
200200
# "PLR", # Pylint Refactoring suggestions
201201
# "PLW", # Pylint Warnings
@@ -250,6 +250,10 @@ per-file-ignores."examples/scripts/*.py" = [
250250
"F821", # Undefined name `app`
251251
]
252252

253+
per-file-ignores."examples/unicode_commands.py" = [
254+
"PLC2401", # Allow non-ASCII characters in function names
255+
]
256+
253257
per-file-ignores."tests/pyscript/*.py" = [
254258
"F821", # Undefined name `app`
255259
]

0 commit comments

Comments
 (0)