Skip to content

Commit

Permalink
Upgrade git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 19, 2022
1 parent a90a2cc commit 425debf
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,21 @@ repos:
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-toml
- id: check-case-conflict
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.8.0
hooks:
- id: black
exclude_types: [directory]
language_version: python3
log_file: ./dev_precommit_black.log
require_serial: true
types: [file, python]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
Expand All @@ -33,13 +29,18 @@ repos:
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
language: python
files: ^gml_application_schema_toolbox/.*\.py$
args: ["--config=setup.cfg", "--select=E9,F63,F7,F82"]
types: [python]
additional_dependencies: ["flake8-qgis<2"]
args:
[
"--config=setup.cfg",
"--select=E9,F63,F7,F82,QGS101,QGS102,QGS103,QGS104,QGS106",
]

ci:
autofix_prs: true
Expand Down

0 comments on commit 425debf

Please sign in to comment.