aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-08-16 09:57:46 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-08-16 09:57:46 -0400
commit3b796ff25876e84c636baea33329bd3c43867de6 (patch)
tree8284474d4002817760965c480b022aa43eac778d /.pre-commit-config.yaml
parentDrop support for python 3.6, 3.7, and 3.8 (diff)
downloadconfig-file-3b796ff25876e84c636baea33329bd3c43867de6.zip
Update dependencies and linting
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml73
1 files changed, 31 insertions, 42 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7577619..9ac2670 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,45 +1,34 @@
-# Ignore invalid template test files
-exclude: invalid.*
-
repos:
- - repo: git@github.com:humitos/mirrors-autoflake.git
- rev: v1.3
- hooks:
- - id: autoflake
- args:
- [
- "--in-place",
- "--remove-all-unused-imports",
- "--remove-unused-variable",
- ]
-
- - repo: https://github.com/asottile/seed-isort-config
- rev: v1.9.4
- hooks:
- - id: seed-isort-config
-
- - repo: https://github.com/pre-commit/mirrors-isort
- rev: v4.3.21
+ - repo: local
hooks:
- - id: isort
- additional_dependencies:
- - toml
+ - id: types
+ name: mypy
+ language: system
+ 'types_or': [python, pyi]
+ require_serial: true
+ entry: mypy
+ - id: analyze
+ name: ruff
+ language: system
+ 'types_or': [python, pyi]
+ require_serial: true
+ entry: ruff check
+ - id: sort-imports
+ name: isort
+ language: system
+ 'types_or': [python, pyi]
+ require_serial: true
+ entry: isort
+ - id: clean-imports
+ name: autoflake
+ language: system
+ 'types_or': [python, pyi]
+ require_serial: true
+ entry: autoflake
+ - id: format
+ name: black
+ language: system
+ 'types_or': [python, pyi]
+ require_serial: true
+ entry: black
- - repo: https://github.com/ambv/black
- rev: stable
- hooks:
- - id: black
-
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v2.5.0
- hooks:
- - id: trailing-whitespace
- - id: check-docstring-first
- - id: check-case-conflict
- - id: check-yaml
- - id: check-toml
-
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v1.2.3
- hooks:
- - id: flake8