diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e5164d4..f3448a9f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -87,3 +87,9 @@ repos: - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal + +- repo: https://github.com/mgedmin/check-manifest + rev: "0.47" + hooks: + - id: check-manifest + stages: [manual] diff --git a/MANIFEST.in b/MANIFEST.in index 9b4bb109..106ebbdb 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ recursive-include nox *.jinja2 include nox/py.typed +recursive-include tests *.py diff --git a/noxfile.py b/noxfile.py index ee0e4516..8e655a46 100644 --- a/noxfile.py +++ b/noxfile.py @@ -101,6 +101,7 @@ def lint(session): "run", "--all-files", "--show-diff-on-failure", + "--hook-stage=manual", env={"SETUPTOOLS_USE_DISTUTILS": "stdlib"}, *session.posargs, ) diff --git a/pyproject.toml b/pyproject.toml index f332c6cd..cdf68931 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,3 +42,13 @@ strict_equality = true [[tool.mypy.overrides]] module = [ "argcomplete", "colorlog.*", "py", "tox.*" ] ignore_missing_imports = true + +[tool.check-manifest] +ignore = [ + "docs/**", + "noxfile.py", + "requirements-conda-test.txt", + "requirements-test.txt", + "*.md", + ".*", +]