Skip to content

Commit 653cf34

Browse files
committed
chore: remove Black/isort config, update ruff to 0.14.6
- Remove black and isort from dev dependencies (ruff replaces both) - Update ruff version constraint to >=0.14.6 - Remove [tool.black], [tool.isort], [tool.ruff] sections from pyproject.toml (configuration now lives in ruff.toml) - Add deferred rules to extend-ignore for issues requiring larger refactoring
1 parent 6ea061d commit 653cf34

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

pyproject.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ benchmark = [
6868
]
6969

7070
dev = [
71-
"black>=24.3",
72-
"ruff>=0.4",
71+
"ruff>=0.14.6",
7372
"pytest>=8.2",
7473
"pytest-mock>=3.14",
7574
"pytest-cov>=5.0",
@@ -79,12 +78,4 @@ dev = [
7978
[tool.setuptools.packages.find]
8079
where = ["src"] # put your code under ./src/…
8180

82-
[tool.black]
83-
line-length = 100
84-
85-
[tool.isort]
86-
profile = "black"
87-
88-
[tool.ruff]
89-
ignore = ["E501"] # line length handled by Black
90-
line-length = 100
81+
# Ruff configuration moved to ruff.toml

ruff.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Ruff configuration
21
# https://docs.astral.sh/ruff/
3-
42
line-length = 100
53
target-version = "py312"
64

@@ -51,29 +49,29 @@ ignore = [
5149
# Deferred rules - require code changes, to be addressed in follow-up PRs
5250
# TODO: Remove from extend-ignore as issues are fixed
5351
extend-ignore = [
54-
# === Require refactoring ===
52+
# Require refactoring
5553
"PTH", # pathlib migration - significant refactor
5654
"TCH", # TYPE_CHECKING imports - requires careful review
5755
"UP035", # typing.List -> list - touches many files
5856
"B006", # mutable-argument-default - needs case-by-case review
5957
"B023", # function-uses-loop-variable - needs case-by-case review
6058
"E402", # module-import-not-at-top - sometimes intentional for side effects
6159

62-
# === Stylistic - sometimes the "violation" is clearer ===
60+
# Stylistic - sometimes the "violation" is clearer
6361
"SIM102", # nested if statements
6462
"SIM105", # suppressible exception (contextlib.suppress)
6563
"SIM115", # open-file-with-context-handler
6664
"SIM117", # nested with statements
6765
"SIM118", # key in dict.keys() -> key in dict
6866
"E731", # lambda assignment
6967

70-
# === Naming - often intentional (math notation, DSL) ===
68+
# Naming - often intentional (math notation, DSL)
7169
"N806", # non-lowercase variable in function
7270
"N803", # invalid argument name
7371
"N802", # invalid function name
7472
"E741", # ambiguous variable name (l, O, I)
7573

76-
# === Low priority / noisy ===
74+
# Low priority / noisy
7775
"RUF059", # unused unpacked variable
7876
"RUF013", # implicit-optional (None default without Optional type)
7977
"RUF002", # ambiguous unicode in docstring

0 commit comments

Comments
 (0)