diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c28926d..59fd1f39 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,6 +44,8 @@ repos: hooks: - id: codespell args: ["-w"] + additional_dependencies: [tomli] + exclude: "(^pyproject.toml|.po)$" - repo: https://github.com/pre-commit/pygrep-hooks rev: "v1.10.0" diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 03f5a905..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,7 +0,0 @@ -include LICENSE -include README.rst -include CHANGELOG.rst -include translations.py -include tests/not-in-path/dummy-executable -recursive-include plumbum *.mo *.po *.py py.typed -recursive-include tests *.bash *.py *.txt diff --git a/noxfile.py b/noxfile.py index 9fa05b4e..3a6af51a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -22,7 +22,7 @@ def pylint(session): Run pylint. """ - session.install(".", "paramiko", "ipython", "pylint~=3.0.2") + session.install(".", "paramiko", "ipython", "pylint~=3.1.0") session.run("pylint", "plumbum", *session.posargs) diff --git a/pyproject.toml b/pyproject.toml index b7057f5b..176d61c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -208,3 +208,7 @@ flake8-unused-arguments.ignore-variadic-names = true "plumbum/cli/application.py" = ["T20"] "plumbum/commands/base.py" = ["SIM115"] "plumbum/commands/daemons.py" = ["SIM115"] + +[tool.codespell] +ignore-words-list = "ans,switchs,hart,ot,twoo,fo" +skip = "*.po" diff --git a/setup.cfg b/setup.cfg index e1bc49d4..19fb4703 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,17 +15,3 @@ exclude_lines = raise AssertionError raise NotImplementedError if __name__ == .__main__.: - -[flake8] -max-complexity = 50 -extend-ignore = E203, E501, T202 -extend-select = B902, B903, B904 -per-file-ignores = - tests/*: T - examples/*: T - experiments/*: T - plumbum/cli/application.py: T - -[codespell] -ignore-words-list = ans,switchs,hart,ot,twoo,fo -skip = *.po