Skip to content

Commit b782862

Browse files
committed
update pre-commit & sourcery
1 parent e261fde commit b782862

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.devcontainer/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pylint
1212
pylint-django
1313
wily
1414
yapf
15+
sourcery-analytics

.pre-commit-config.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ repos:
1414
- id: requirements-txt-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/PyCQA/isort
17-
rev: 5.11.4
17+
rev: 5.12.0
1818
hooks:
1919
- id: isort
2020
args:
2121
- "--profile=black"
22+
exclude: ^.devcontainer/
2223
- repo: https://github.com/psf/black
23-
rev: 22.12.0
24+
rev: 23.1.0
2425
hooks:
2526
- id: black
2627
language_version: python3
28+
exclude: ^.devcontainer/
2729
- repo: https://github.com/asottile/add-trailing-comma
2830
rev: v2.4.0
2931
hooks:
@@ -34,6 +36,7 @@ repos:
3436
rev: 6.0.0
3537
hooks:
3638
- id: flake8
39+
exclude: ^.devcontainer/
3740
- repo: https://github.com/asottile/pyupgrade
3841
rev: v3.3.1
3942
hooks:
@@ -44,6 +47,12 @@ repos:
4447
rev: v1.29.0
4548
hooks:
4649
- id: yamllint
50+
- repo: https://github.com/econchick/interrogate
51+
rev: 1.5.0
52+
hooks:
53+
- id: interrogate
54+
args: [--fail-under=90, --verbose]
55+
exclude: (^.devcontainer/|^netbox_acls/migrations/)
4756
#- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
4857
# rev: v1.1.2
4958
# hooks:
@@ -61,3 +70,13 @@ repos:
6170
# verbose: true
6271
# language: python
6372
# additional_dependencies: [wily]
73+
#- repo: https://github.com/sourcery-ai/sourcery
74+
# rev: v1.0.4b23
75+
# hooks:
76+
# - id: sourcery
77+
# # The best way to use Sourcery in a pre-commit hook:
78+
# # * review only changed lines:
79+
# # * omit the summary
80+
# args:
81+
# - --diff=git diff HEAD
82+
# - --no-summary

0 commit comments

Comments
 (0)