Skip to content

Commit

Permalink
update(tooling): use Python 3.12 as minimal version
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jan 6, 2025
1 parent 3decac0 commit 4abc35e
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,60 @@ repos:
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
args:
- --maxkb=500
- 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]
args:
- --remove
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
args:
- --markdown-linebreak-ext=md

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
args: ["--whitespaces-count", "4"]
args:
- --whitespaces-count
- "4"

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

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

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
args:
- --profile
- black
- --filter-files

- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
files: ^qgis_resource_sharing/.*\.py$
additional_dependencies: ["flake8-qgis<2"]
additional_dependencies:
- "flake8-qgis"
args:
[
"--config=setup.cfg",
Expand Down

0 comments on commit 4abc35e

Please sign in to comment.