Skip to content

Commit

Permalink
checking manifest with pre-commit (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 authored and shosca committed Nov 7, 2019
1 parent 8d6603c commit 1129a7a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 143 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ repos:
- id: black
language_version: python3

- repo: https://github.com/mgedmin/check-manifest
rev: '0.40'
hooks:
- id: check-manifest

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
Expand Down
138 changes: 0 additions & 138 deletions .style.yapf

This file was deleted.

20 changes: 18 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
include *.rst *.txt
recursive-include tests *
include *.rc
include *.editorconfig
include *.importanizerc
include *.rst
include *.toml
include *.txt
include *.yaml *.yml
include LICENSE
include Makefile
include pytest.ini
include tox.ini
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include rest_witchcraft *.py

recursive-include docs *
recursive-exclude docs/_build *

recursive-include tests *
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and

clean-build: ## remove build artifacts
find -name '*.sqlite3' -delete
rm -rf build/ dist/ .eggs/
rm -rf '*.egg-info'
rm -rf '*.egg'
rm -rf build dist .eggs .mypy_cache .pytest_cache docs/_build *.egg* pip-wheel-metadata

clean-pyc: ## remove Python file artifacts
find -name '*.pyc' -delete
Expand Down

0 comments on commit 1129a7a

Please sign in to comment.