mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-08 21:06:28 +08:00
pre-commit updates
This commit is contained in:
parent
57fa0b0c41
commit
d2b67007ff
2 changed files with 7 additions and 5 deletions
6
.flake8
6
.flake8
|
@ -1,5 +1,7 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
extend-ignore =
|
extend-ignore =
|
||||||
E722, # E722 Do not use bare except, specify exception instead
|
# E722 Do not use bare except, specify exception instead
|
||||||
E402, # E402 module level import not at top of file
|
E722,
|
||||||
|
# E402 module level import not at top of file
|
||||||
|
E402,
|
||||||
max-line-length = 130
|
max-line-length = 130
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
@ -27,7 +27,7 @@ repos:
|
||||||
args: [--format, parsable, --strict]
|
args: [--format, parsable, --strict]
|
||||||
exclude: ^.github/
|
exclude: ^.github/
|
||||||
- repo: https://github.com/lyz-code/yamlfix
|
- repo: https://github.com/lyz-code/yamlfix
|
||||||
rev: 1.1.0
|
rev: 1.1.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamlfix
|
- id: yamlfix
|
||||||
exclude: ^.github/
|
exclude: ^.github/
|
||||||
|
@ -47,7 +47,7 @@ repos:
|
||||||
language_version: python3
|
language_version: python3
|
||||||
args: [--line-length, '130']
|
args: [--line-length, '130']
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 5.0.4
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args: [--config=.flake8]
|
args: [--config=.flake8]
|
||||||
|
|
Loading…
Add table
Reference in a new issue