From cc5d3686b8bbeee825ad73949611b8823d502fc7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 29 Apr 2024 01:47:31 -0400 Subject: [PATCH] chore: clean up codespell (#682) Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 2 ++ MANIFEST.in | 7 ------- noxfile.py | 2 +- pyproject.toml | 4 ++++ setup.cfg | 14 -------------- 5 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 MANIFEST.in diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c28926d0..59fd1f396 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 03f5a9052..000000000 --- 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 9fa05b4e8..3a6af51a9 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 b7057f5b6..176d61c49 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 e1bc49d47..19fb47031 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