Skip to content

Commit f5c8661

Browse files
committed
chore: remove black/isort and add ruff
1 parent 6153521 commit f5c8661

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

geos-trame/.pre-commit-config.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.3.0
4-
hooks:
5-
- id: black
6-
exclude: ^.*\b(schema_generated)\b.*$
7-
entry: black --check --force-exclude
8-
92
- repo: https://github.com/codespell-project/codespell
103
rev: v2.1.0
114
hooks:
125
- id: codespell
136

14-
- repo: https://github.com/PyCQA/flake8
15-
rev: 4.0.1
7+
- repo: https://github.com/astral-sh/ruff-pre-commit
8+
rev: v0.11.12
9+
hooks:
10+
- id: ruff
11+
args: ["--config", "./.ruff.toml"]
12+
13+
- repo: https://github.com/google/yapf
14+
rev: v0.43.0
15+
hooks:
16+
- id: yapf
17+
args: ["-ir", "--style", "./.style.yapf"]
18+
19+
- repo: https://github.com/pre-commit/mirrors-mypy
20+
rev: v1.16.0
1621
hooks:
17-
- id: flake8
22+
- id: mypy
23+
additional_dependencies: [types-PyYAML]

geos-trame/pyproject.toml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ build = [
5656
dev = [
5757
"pylint",
5858
"mypy",
59-
"black",
60-
"isort",
6159
"mypy",
60+
"ruff",
61+
"pre-commit"
6262
]
6363
test = [
6464
"pytest==8.3.3",
@@ -118,18 +118,3 @@ disable = [
118118
"R0913", # (too-many-arguments)
119119
"W0105", # (pointless-string-statement)
120120
]
121-
122-
[tool.black]
123-
line-length = 88
124-
target-version = ['py310']
125-
include = '\.pyi?$'
126-
extend-exclude = '''
127-
src/geos_trame/schema_generated/*.py
128-
'''
129-
130-
[tool.isort]
131-
profile = "black"
132-
src_paths = ["src", "tests"]
133-
blackArgs = ["--preview"]
134-
py_version = 310
135-

0 commit comments

Comments
 (0)