-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configures 'pre-commit' hooks for Zappa's development tools (#1284)
Configures pre-commit hooks for Zappa's development tools
- Loading branch information
1 parent
35af3cd
commit 10316af
Showing
3 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: name-tests-test | ||
args: [--unittest] | ||
exclude: ^tests/utils.py | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--profile=black, --gitignore] | ||
- repo: https://github.com/psf/black | ||
rev: 23.10.1 | ||
hooks: | ||
- id: black | ||
args: [--line-length=127] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- --count | ||
- --max-complexity=55 | ||
- --max-line-length=127 | ||
- --statistics | ||
- --extend-ignore=E203,E231,E252,E721,F403,F405,F541,W503 | ||
files: zappa | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.6.1 | ||
hooks: | ||
- id: mypy | ||
args: | ||
- --show-error-codes | ||
- --pretty | ||
- --ignore-missing-imports | ||
- --no-site-packages | ||
files: zappa | ||
- repo: https://github.com/thlorenz/doctoc | ||
rev: v2.2.0 | ||
hooks: | ||
- id: doctoc | ||
args: [--update-only] | ||
files: ./README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ isort = "*" | |
mock = "*" | ||
mypy = "*" | ||
packaging = "*" | ||
pre-commit = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters