Browse Source

style: check manifest (#552)

* style: check manifest

* fix: include tests in the SDist
pull/556/head
Henry Schreiner 6 months ago committed by GitHub
parent
commit
8261d2ad0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .pre-commit-config.yaml
  2. 1
      MANIFEST.in
  3. 1
      noxfile.py
  4. 10
      pyproject.toml

6
.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]

1
MANIFEST.in

@ -1,2 +1,3 @@
recursive-include nox *.jinja2
include nox/py.typed
recursive-include tests *.py

1
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,
)

10
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",
".*",
]

Loading…
Cancel
Save