Skip to content

Commit 94db6b2

Browse files
committedSep 3, 2024
update README.md and update pre-commit file.
1 parent 6d2aa5a commit 94db6b2

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed
 

‎.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,32 @@ repos:
44
hooks:
55
- id: black
66
language_version: python3
7+
exclude: ^alembic/versions/
78

89
- repo: https://github.com/pycqa/isort
910
rev: 5.13.2
1011
hooks:
1112
- id: isort
1213
name: isort (python)
14+
exclude: ^alembic/versions/
1315

1416
- repo: https://github.com/charliermarsh/ruff-pre-commit
1517
rev: v0.6.3
1618
hooks:
1719
- id: ruff
1820
language_version: python3
21+
exclude: ^alembic/versions/
1922

2023
- repo: https://github.com/pre-commit/pre-commit-hooks
2124
rev: v1.2.3
2225
hooks:
2326
- id: flake8
27+
exclude: ^alembic/versions/
2428

2529
- repo: https://github.com/pre-commit/pre-commit-hooks
2630
rev: v4.6.0
2731
hooks:
2832
- id: trailing-whitespace
33+
exclude: ^alembic/versions/
2934
- id: end-of-file-fixer
35+
exclude: ^alembic/versions/

‎pyproject.toml

-9
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,3 @@ extend-select = [
137137
"PLR", # pylint Refactor
138138
"PLW", # pylint Warning
139139
]
140-
141-
[tool.flake8]
142-
exclude = [
143-
"alembic/versions/*"
144-
]
145-
ignore = [
146-
"E501", # Ignore line length errors
147-
"W503" # Ignore line break before binary operator
148-
]

0 commit comments

Comments
 (0)
Please sign in to comment.