Skip to content

Commit

Permalink
🔧 Improve packaging tooling (#923)
Browse files Browse the repository at this point in the history
* 🩹 Changed old HISTORY.rst to changelog.md in manifest
* 🔧 Added 'check-manifest' pre-commit hook to check for missing files in the distribution
* 📚 Add change to changelog

Co-authored-by: Joris Snellenburg <jsnel@users.noreply.github.com>
  • Loading branch information
s-weigand and jsnel authored Jan 5, 2022
1 parent 48ed9cf commit b1f678a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,8 @@ repos:
types: [file]
types_or: [python, pyi, markdown, rst, jupyter]
args: [-L doas]

- repo: https://github.com/mgedmin/check-manifest
rev: "0.47"
hooks:
- id: check-manifest
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include changelog.md
include LICENSE
include README.md
setup.cfg
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

### 🚧 Maintenance

- 🔧 Improve packaging tooling (#923)

## 0.5.1 (2021-12-31)

### 🩹 Bug fixes
Expand Down
26 changes: 25 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ force_single_line = true
remove_redundant_aliases = true

[tool.interrogate]
exclude = ["setup.py", "docs", "*test/*", "benchmark/*"]
exclude = [
"setup.py",
"docs",
"*test/*",
"benchmark/*"
]
ignore-init-module = true
fail-under = 59

Expand Down Expand Up @@ -67,3 +72,22 @@ exclude_lines = [
'if __name__ == .__main__.:',
'if TYPE_CHECKING:'
]

[tool.check-manifest]
ignore = [
"benchmark/**/*",
"binder/**/*",
"docs/**/*",
"*/.pytest_cache/**/*",
"*/.mypy_cache/**/*",
".git-blame-ignore-revs",
".gitignore",
".pre-commit-config.yaml",
".sonarcloud.properties",
".sourcery.yaml",
".zenodo.json",
"codecov.yml",
"readthedocs.yml",
"requirements_dev.txt",
"tox.ini",
]

0 comments on commit b1f678a

Please sign in to comment.