diff --git a/.github/workflows/codespell-private.yml b/.github/workflows/codespell-private.yml index f58feeae36..6ceff4667a 100644 --- a/.github/workflows/codespell-private.yml +++ b/.github/workflows/codespell-private.yml @@ -41,7 +41,7 @@ jobs: - run: codespell --version - run: make check - uses: codecov/codecov-action@v3 - - run: codespell --check-filenames --skip="./.git/*,*.pyc,./codespell_lib/tests/test_basic.py,./codespell_lib/data/*,./example/code.c,./build/lib/codespell_lib/tests/test_basic.py,./build/lib/codespell_lib/data/*,README.rst,*.egg-info/*" + - run: codespell --check-filenames --skip="./.git/*,*.pyc,./codespell_lib/tests/test_basic.py,./codespell_lib/data/*,./example/code.c,./build/lib/codespell_lib/tests/test_basic.py,./build/lib/codespell_lib/data/*,README.rst,*.egg-info/*,pyproject-codespell.precommit-toml" # this file has an error - run: "! codespell codespell_lib/tests/test_basic.py" diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 585891230d..c9eb5ead6a 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -13,4 +13,4 @@ jobs: with: check_filenames: true # When using this Action in other repos, the --skip option below can be removed - skip: "./.git,./codespell_lib/data,./example/code.c,test_basic.py,*.pyc,README.rst" + skip: "./.git,./codespell_lib/data,./example/code.c,test_basic.py,*.pyc,README.rst,pyproject-codespell.precommit-toml" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 570d846a57..f2851fa68a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ --- -files: ^(.*\.(py|json|md|sh|yaml|cfg|txt))$ +files: ^(.*\.(py|json|md|sh|yaml|yml|in|cfg|txt|rst|toml|precommit-toml))$ exclude: ^(\.[^/]*cache/.*)$ repos: - repo: https://github.com/executablebooks/mdformat @@ -21,6 +21,10 @@ repos: - mdformat-black - mdformat-web - mdformat-gfm + - repo: https://github.com/Lucas-C/pre-commit-hooks-markup + rev: v1.0.1 + hooks: + - id: rst-linter - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 hooks: @@ -56,7 +60,7 @@ repos: - -d - '{extends: relaxed, rules: {line-length: {max: 90}}}' - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit diff --git a/MANIFEST.in b/MANIFEST.in index f5358f6819..60957b16d9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,4 +9,4 @@ exclude .git-blame-ignore-revs exclude example example/* snap snap/* tools tools/* exclude Makefile exclude codespell.1.include -exclude pyproject-codespell.precommit-toml \ No newline at end of file +exclude pyproject-codespell.precommit-toml diff --git a/pyproject-codespell.precommit-toml b/pyproject-codespell.precommit-toml index 41a15c09dc..e49d999770 100644 --- a/pyproject-codespell.precommit-toml +++ b/pyproject-codespell.precommit-toml @@ -2,6 +2,6 @@ #builtin = ["clear","rare","informal","usage","code","names"] builtin = "clear,rare,informal,usage,code,names" #ignore-words-list = ["uint"] -ignore-words-list = "uint" +ignore-words-list = "adn,master,uint" #skip=[ "./.*","codespell_lib/data/*","codespell_lib/tests/*"] skip="./.*,codespell_lib/data/*,codespell_lib/tests/*"