Skip to content

Commit

Permalink
tooling: bump dev dependencies and update git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jan 9, 2024
1 parent c4be32e commit 7f53548
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ repos:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-case-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
Expand All @@ -24,10 +23,17 @@ repos:
- id: remove-tabs
args: ["--whitespaces-count", "4"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.11"
hooks:
- id: ruff
args: ["--fix-only", "--target-version=py39"]

- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
args: ["--target-version=py39"]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
Expand All @@ -36,7 +42,7 @@ repos:
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
files: ^qgis_resource_sharing/.*\.py$
Expand Down
9 changes: 4 additions & 5 deletions requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# -------------------------------------------

black
flake8>=3.8,<4.1
flake8-builtins>=1.5,<2.1
flake8-isort>=4.0,<5.1
flake8-qgis>=1,<1.1
pre-commit>=2.18,<2.22
flake8-builtins>=1.5
flake8-isort>=6
flake8-qgis>=1,<2
pre-commit>=3,<3.8

0 comments on commit 7f53548

Please sign in to comment.