Skip to content

Commit

Permalink
style: check manifest (#552)
Browse files Browse the repository at this point in the history
* style: check manifest

* fix: include tests in the SDist
  • Loading branch information
henryiii authored Dec 29, 2021
1 parent 8b12711 commit 8261d2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
recursive-include nox *.jinja2
include nox/py.typed
recursive-include tests *.py
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def lint(session):
"run",
"--all-files",
"--show-diff-on-failure",
"--hook-stage=manual",
env={"SETUPTOOLS_USE_DISTUTILS": "stdlib"},
*session.posargs,
)
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
".*",
]

0 comments on commit 8261d2a

Please sign in to comment.