Add pre commit (#103)

* add pre-commit

* run pre-commit

* skip lint on README.md as it breaks template filling
This commit is contained in:
Paul Robinson
2023-10-04 13:32:07 -06:00
committed by GitHub
parent efcb97c348
commit 7099bbaaa4
15 changed files with 82 additions and 67 deletions

View File

@ -8,15 +8,15 @@ relevant to people working on the code itself.)
Each file should be named like `<ISSUE>.<TYPE>.rst`, where
`<ISSUE>` is an issue number, and `<TYPE>` is one of:
* `breaking`
* `bugfix`
* `deprecation`
* `docs`
* `feature`
* `internal`
* `misc`
* `performance`
* `removal`
- `breaking`
- `bugfix`
- `deprecation`
- `docs`
- `feature`
- `internal`
- `misc`
- `performance`
- `removal`
So for example: `123.feature.rst`, `456.bugfix.rst`

View File

@ -31,7 +31,6 @@ if num_args == 1:
assert sys.argv[1] in ("is-empty",)
for fragment_file in THIS_DIR.iterdir():
if fragment_file.name in ALLOWED_FILES:
continue
elif num_args == 0: