mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
update pre-commit & sourcery
This commit is contained in:
parent
e261fde52b
commit
b782862590
@ -12,3 +12,4 @@ pylint
|
||||
pylint-django
|
||||
wily
|
||||
yapf
|
||||
sourcery-analytics
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user