Skip to content

Commit 7d257d4

Browse files
committed
chore: Update development dependencies
This commit replaces flake8 and isort with ruff, as it's significantly faster. Moreover, I removed all upper constraints to development dependencies (with the exception of pytest-postgresql). Having upper constraints causes more issues than it resolves, and I had already dropped all upper constraints from non-dev dependencies. The only exception is because pytest-postgresql moved to psycopg3 and dbt-postgres does not yet support it.
1 parent 81e947c commit 7d257d4

File tree

3 files changed

+1051
-871
lines changed

3 files changed

+1051
-871
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ repos:
33
rev: v4.4.0
44
hooks:
55
- id: trailing-whitespace
6+
name: Check trailing whitespace
67
- id: end-of-file-fixer
8+
name: Ensure end of file newline
79

810
- repo: https://github.com/psf/black
911
rev: 23.1.0
@@ -12,31 +14,21 @@ repos:
1214
name: Python code formatting
1315
types_or: [python, pyi]
1416

15-
- repo: https://github.com/pycqa/flake8
16-
rev: 6.0.0
17-
hooks:
18-
- id: flake8
19-
additional_dependencies: [flake8-docstrings]
20-
args: ["--config", ".flake8"]
21-
name: PEP8 enforcement
22-
exclude: tests/
23-
2417
- repo: https://github.com/pre-commit/mirrors-mypy
2518
rev: v1.0.1
2619
hooks:
2720
- id: mypy
2821
name: Static type checking
2922
additional_dependencies: ["types-freezegun==1.1.6", "boto3-stubs[s3]", "types-PyYAML"]
3023

31-
- repo: https://github.com/pycqa/isort
32-
rev: 5.12.0
33-
hooks:
34-
- id: isort
35-
name: Sort import statements
36-
args: ["--profile", "black", "--filter-files"]
37-
3824
- repo: https://github.com/Yelp/detect-secrets
3925
rev: v1.4.0
4026
hooks:
4127
- id: detect-secrets
4228
name: Detect secrets
29+
30+
- repo: https://github.com/charliermarsh/ruff-pre-commit
31+
rev: 'v0.0.254'
32+
hooks:
33+
- id: ruff
34+
name: Ruff check

0 commit comments

Comments
 (0)