Skip to content

Commit ad3cd20

Browse files
committed
💄: re-style the pyproject.toml
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
1 parent b1a8ce7 commit ad3cd20

File tree

1 file changed

+45
-48
lines changed

1 file changed

+45
-48
lines changed

‎pyproject.toml

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
requires-python = ">=3.10"
77
license = "MIT"
88
authors = [
9-
{name="Consortium for Python Data API Standards", email="data-apis@users.noreply.github.com"},
10-
{name="Joren Hammudoglu", email="jhammudoglu@gmail.com"},
11-
{name="Nathaniel Starkman", email="nstarman@users.noreply.github.com"}
9+
{ name = "Consortium for Python Data API Standards", email = "data-apis@users.noreply.github.com" },
10+
{ name = "Joren Hammudoglu", email = "jhammudoglu@gmail.com" },
11+
{ name = "Nathaniel Starkman", email = "nstarman@users.noreply.github.com" },
1212
]
1313
classifiers = [
1414
"Development Status :: 1 - Planning",
@@ -28,53 +28,50 @@
2828
dependencies = []
2929

3030
[project.urls]
31-
Changelog = "https://github.com/data-apis/array-api-typing/releases"
32-
Repository = "https://github.com/data-apis/array-api-typing"
31+
Repository = "https://github.com/data-apis/array-api-typing"
32+
Changelog = "https://github.com/data-apis/array-api-typing/releases"
3333

3434

3535
[build-system]
36-
requires = ["hatch-vcs", "hatchling"]
36+
requires = ["hatch-vcs", "hatchling"]
3737
build-backend = "hatchling.build"
3838

3939

4040
[dependency-groups]
41-
dev = [
42-
"pre-commit>=4.0.1",
43-
{ include-group = "test" },
44-
]
45-
test = [
46-
"pytest>=8.3.3",
47-
"pytest-cov >=3",
48-
"pytest-github-actions-annotate-failures",
49-
"sybil>=8.0.0",
50-
]
41+
dev = ["pre-commit>=4.0.1", { include-group = "test" }]
42+
test = [
43+
"pytest>=8.3.3",
44+
"pytest-cov >=3",
45+
"pytest-github-actions-annotate-failures",
46+
"sybil>=8.0.0",
47+
]
5148

5249

5350
[tool.hatch]
5451
build.hooks.vcs.version-file = "src/array_api_typing/_version.py"
55-
version.source = "vcs"
52+
version.source = "vcs"
5653

5754

5855
[tool.coverage]
5956
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']
60-
run.source = ["array-api-typing"]
61-
run.branch = true
57+
run.source = ["array-api-typing"]
58+
run.branch = true
6259

6360

6461
[tool.mypy]
65-
files = ["src", "tests"]
66-
python_version = "3.10"
62+
files = ["src", "tests"]
63+
python_version = "3.10"
6764

68-
strict = true
65+
strict = true
6966
disallow_incomplete_defs = true
70-
disallow_untyped_defs = true
67+
disallow_untyped_defs = true
7168
disable_bytearray_promotion = true # Note(2024-12-05): these are private flags
7269
disable_memoryview_promotion = true # Note(2024-12-05): these are private flags
73-
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
70+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
7471

75-
warn_return_any = true
76-
warn_unreachable = true
77-
warn_unused_configs = true
72+
warn_return_any = true
73+
warn_unreachable = true
74+
warn_unused_configs = true
7875

7976

8077
[tool.pytest.ini_options]
@@ -93,7 +90,7 @@ test = [
9390
]
9491
log_cli_level = "INFO"
9592
minversion = "8.3"
96-
testpaths = ["src/", "tests/", "README.md", "docs"]
93+
testpaths = ["README.md", "src/", "docs", "tests/"]
9794
norecursedirs = ["docs/_build"]
9895
xfail_strict = true
9996

@@ -105,29 +102,29 @@ test = [
105102
[tool.ruff.lint]
106103
extend-select = ["ALL"]
107104
ignore = [
108-
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
109-
"COM812", # Conflicts with formatter
110-
"D105", # Missing docstring in magic method
111-
"D107", # Missing docstring in __init__
112-
"D203", # 1 blank line required before class docstring
113-
"D213", # Multi-line docstring summary should start at the second line
114-
"FBT", # flake8-boolean-trap
115-
"FIX", # flake8-fixme
116-
"ISC001", # Conflicts with formatter
105+
"COM812", # Conflicts with formatter
106+
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
107+
"D105", # Missing docstring in magic method
108+
"D107", # Missing docstring in __init__
109+
"D203", # 1 blank line required before class docstring
110+
"D213", # Multi-line docstring summary should start at the second line
111+
"FBT", # flake8-boolean-trap
112+
"FIX", # flake8-fixme
113+
"ISC001", # Conflicts with formatter
117114
]
118-
115+
119116
[tool.ruff.lint.flake8-import-conventions]
120117
banned-from = ["array_api_typing"]
121118

122-
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
123-
array_api_typing = "xpt"
119+
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
120+
array_api_typing = "xpt"
124121

125-
[tool.ruff.lint.isort]
126-
combine-as-imports = true
127-
extra-standard-library = ["typing_extensions"]
128-
known-local-folder = ["array_api_typing"]
122+
[tool.ruff.lint.isort]
123+
combine-as-imports = true
124+
extra-standard-library = ["typing_extensions"]
125+
known-local-folder = ["array_api_typing"]
129126

130-
[tool.ruff.format]
131-
docstring-code-format = true
132-
line-ending = "lf"
133-
preview = true
127+
[tool.ruff.format]
128+
docstring-code-format = true
129+
line-ending = "lf"
130+
preview = true

0 commit comments

Comments
 (0)