Skip to content

Commit

Permalink
Merge pull request #1224 from VWS-Python/per-file-ignore
Browse files Browse the repository at this point in the history
Use more modern pylint-per-file-ignores syntax
  • Loading branch information
adamtheturtle authored Jan 18, 2025
2 parents 2c19d00 + 04defbd commit 5e624e9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,14 @@ disable = [
'wrong-import-order',
]

# This format is described in the following issue:
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160
#
# We ignore invalid names because:
# - We want to use generated module names, which may not be valid, but are never seen.
# - We want to use global variables in documentation, which may not be uppercase.
# - conf.py is a Sphinx configuration file which requires lowercase global variable names.
per-file-ignores = """
docs/:invalid-name
doccmd_README_rst.*.py:invalid-name
"""
per-file-ignores = [
"docs/:invalid-name",
"doccmd_README_rst.*.py:invalid-name",
]

[tool.pylint.'FORMAT']

Expand Down

0 comments on commit 5e624e9

Please sign in to comment.