Skip to content

Commit d0dad75

Browse files
committed
Switch to ruff's formatter and import sorting
1 parent 0bef7f8 commit d0dad75

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
- name: Check formatting
7373
if: always()
7474
run: |
75-
hatch run style:format
7675
git diff --color --exit-code
7776
- name: Check types
7877
if: always()

pyproject.toml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,20 @@ check = [
8484
skip-install = true
8585
dependencies = [
8686
"ruff",
87-
"isort",
88-
"black",
8987
]
9088
[tool.hatch.envs.style.scripts]
9189
fix = [
9290
"ruff check --fix mkdocs_click tests",
9391
"format",
9492
]
9593
format = [
96-
"isort -q mkdocs_click tests",
97-
"black -q mkdocs_click tests",
94+
"ruff format -q mkdocs_click tests",
9895
]
9996

100-
[tool.black]
101-
line-length = 100
102-
103-
[tool.isort]
104-
profile = "black"
105-
line_length = 100
106-
10797
[tool.ruff]
98+
line-length = 100
10899
select = [
100+
"I",
109101
"F", "W", "E", "UP", "YTT", "C4", "DTZ", "FA", "ISC", "PIE", "T20", "RSE", "TCH",
110102
"B002", "B003", "B005", "B007", "B009", "B012", "B013", "B014", "B015", "B018", "B020", "B021", "B023", "B026", "B033", "B034", "B905",
111103
"COM818",
@@ -123,7 +115,7 @@ allow-dict-calls-with-keyword-arguments = true
123115
[tool.mypy]
124116
disallow_untyped_defs = true
125117
warn_unreachable = true
126-
show_error_codes = true
118+
allow_redefinition = true
127119

128120
[tool.pytest.ini_options]
129121
addopts = "--tb=native"

0 commit comments

Comments
 (0)