Skip to content

Commit f63c7d1

Browse files
committed
Refactor pyproject.toml for improved readability by consolidating dependency lists and removing unnecessary line breaks.
1 parent f474ec4 commit f63c7d1

File tree

1 file changed

+11
-43
lines changed

1 file changed

+11
-43
lines changed

pyproject.toml

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[build-system]
2-
requires = [
3-
"hatchling",
4-
]
2+
requires = ["hatchling"]
53
build-backend = "hatchling.build"
64

75
[project]
@@ -12,13 +10,7 @@ readme = "README.md"
1210
requires-python = ">=3.10"
1311
keywords = []
1412
authors = []
15-
dependencies = [
16-
"qh",
17-
"ju",
18-
"i2",
19-
"dol",
20-
"meshed",
21-
]
13+
dependencies = ["qh", "ju", "i2", "dol", "meshed"]
2214

2315
[project.license]
2416
text = "mit"
@@ -28,15 +20,8 @@ Homepage = "https://github.com/i2mint/uf"
2820
Repository = "https://github.com/i2mint/uf"
2921

3022
[project.optional-dependencies]
31-
dev = [
32-
"pytest>=7.0",
33-
"pytest-cov>=4.0",
34-
"ruff>=0.1.0",
35-
]
36-
docs = [
37-
"sphinx>=6.0",
38-
"sphinx-rtd-theme>=1.0",
39-
]
23+
dev = ["pytest>=7.0", "pytest-cov>=4.0", "ruff>=0.1.0"]
24+
docs = ["sphinx>=6.0", "sphinx-rtd-theme>=1.0"]
4025

4126
[tool.ruff]
4227
line-length = 88
@@ -53,35 +38,18 @@ exclude = [
5338
]
5439

5540
[tool.ruff.lint]
56-
select = [
57-
"D100",
58-
]
59-
ignore = [
60-
"D203",
61-
"E501",
62-
"B905",
63-
]
41+
select = ["D100"]
42+
ignore = ["D203", "E501", "B905"]
6443

6544
[tool.ruff.lint.pydocstyle]
6645
convention = "google"
6746

6847
[tool.ruff.lint.per-file-ignores]
69-
"tests/*" = [
70-
"D",
71-
]
72-
"examples/*" = [
73-
"D",
74-
]
75-
"scrap/*" = [
76-
"D",
77-
]
48+
"**/tests/*" = ["D"]
49+
"**/examples/*" = ["D"]
50+
"**/scrap/*" = ["D"]
7851

7952
[tool.pytest.ini_options]
8053
minversion = "6.0"
81-
testpaths = [
82-
"tests",
83-
]
84-
doctest_optionflags = [
85-
"NORMALIZE_WHITESPACE",
86-
"ELLIPSIS",
87-
]
54+
testpaths = ["tests"]
55+
doctest_optionflags = ["NORMALIZE_WHITESPACE", "ELLIPSIS"]

0 commit comments

Comments
 (0)