update pre-commit & sourcery

This commit is contained in:
ryanmerolle 2023-02-02 21:53:25 +00:00
parent e261fde52b
commit b782862590
2 changed files with 22 additions and 2 deletions

View File

@ -12,3 +12,4 @@ pylint
pylint-django
wily
yapf
sourcery-analytics

View File

@ -14,16 +14,18 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
args:
- "--profile=black"
exclude: ^.devcontainer/
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
language_version: python3
exclude: ^.devcontainer/
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
@ -34,6 +36,7 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
exclude: ^.devcontainer/
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
@ -44,6 +47,12 @@ repos:
rev: v1.29.0
hooks:
- id: yamllint
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
args: [--fail-under=90, --verbose]
exclude: (^.devcontainer/|^netbox_acls/migrations/)
#- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
# rev: v1.1.2
# hooks:
@ -61,3 +70,13 @@ repos:
# verbose: true
# language: python
# additional_dependencies: [wily]
#- repo: https://github.com/sourcery-ai/sourcery
# rev: v1.0.4b23
# hooks:
# - id: sourcery
# # The best way to use Sourcery in a pre-commit hook:
# # * review only changed lines:
# # * omit the summary
# args:
# - --diff=git diff HEAD
# - --no-summary