Skip to content

Commit afd5b69

Browse files
committed
Update pyproject.toml config
1 parent e65dad7 commit afd5b69

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ example-cli = "eq.lib.example.cli:cli"
1818

1919

2020
[build-system]
21-
requires = ["hatchling", "hatch-vcs"]
21+
requires = [
22+
"hatchling",
23+
"hatch-requirements-txt",
24+
"hatch-vcs",
25+
]
2226
build-backend = "hatchling.build"
2327

2428

@@ -88,19 +92,30 @@ known_first_party = ["eq.lib.example"]
8892

8993

9094
[tool.ruff]
95+
line-length = 88
96+
97+
[tool.ruff.lint]
9198
# https://beta.ruff.rs/docs/rules/
9299
select = [
93100
"E", # pycodestyle
94101
"F", # pyflakes
95102
# "I", # can't yet match isort config
96103
]
97-
line-length = 120
104+
105+
[tool.ruff.format]
106+
# https://docs.astral.sh/ruff/formatter/#configuration
107+
preview = true
108+
quote-style = "double"
109+
indent-style = "space"
110+
line-ending = "lf"
98111

99112
[tool.ruff.pydocstyle]
100113
convention = "numpy"
101114

102115
[tool.ruff.per-file-ignores]
103-
"__init__.py" = ["F401"]
116+
"__init__.py" = [
117+
"F401", # https://www.flake8rules.com/rules/F401.html
118+
]
104119

105120
[tool.ruff.isort]
106121
combine-as-imports = false

0 commit comments

Comments
 (0)