Skip to content

Commit

Permalink
Use pyproject.toml to specify global pylint allows
Browse files Browse the repository at this point in the history
Slightly better than cluttering up the Makefile.
Put the configuration in pyproject.toml, because that is what we did for
pyright.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 13, 2024
1 parent a8df28c commit 687b33e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ UNITTEST_OPTS = --verbose
# need to be warned.
BANDIT_SKIP = --skip B404

PYLINT_DISABLE = --disable=fixme

.PHONY: lint
lint:
pylint setup.py ${PYLINT_DISABLE}
pylint bin/stratis ${PYLINT_DISABLE}
pylint src/stratis_cli --disable=duplicate-code ${PYLINT_DISABLE} --ignore=_introspect.py
pylint tests/whitebox --disable=duplicate-code ${PYLINT_DISABLE}
pylint setup.py
pylint bin/stratis
pylint src/stratis_cli --disable=duplicate-code --ignore=_introspect.py
pylint tests/whitebox --disable=duplicate-code
bandit setup.py ${BANDIT_SKIP}
bandit bin/stratis ${BANDIT_SKIP}
# Ignore B101 errors. We do not distribute optimized code, i.e., .pyo
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ build-backend = "setuptools.build_meta"

[tool.pyright]
include = ["src", "tests", "bin"]

[tool.pylint."messages control"]
disable = ["fixme"]

0 comments on commit 687b33e

Please sign in to comment.