Skip to content

Commit 6d1b13c

Browse files
authored
Enable toml-sort (#142)
1 parent 5ba0603 commit 6d1b13c

File tree

2 files changed

+60
-53
lines changed

2 files changed

+60
-53
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ repos:
4141
files: \.(yaml|yml)$
4242
types: [file, yaml]
4343
entry: yamllint --strict
44+
- repo: https://github.com/pappasam/toml-sort
45+
rev: v0.24.2
46+
hooks:
47+
- id: toml-sort-fix
4448
- repo: https://github.com/pre-commit/mirrors-mypy
4549
rev: v1.13.0
4650
hooks:
@@ -52,7 +56,7 @@ repos:
5256
additional_dependencies:
5357
- pytest>=6.1.2
5458
- enrich>=1.2.5
55-
- repo: https://github.com/PyCQA/pylint
59+
- repo: https://github.com/pycqa/pylint
5660
rev: v3.3.2
5761
hooks:
5862
- id: pylint

pyproject.toml

Lines changed: 55 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,47 @@
11
[build-system]
2+
build-backend = "setuptools.build_meta"
23
requires = [
34
# Needed for PEP 621 support
45
"setuptools >= 61.0",
5-
"setuptools_scm[toml] >= 7.0.0",
6+
"setuptools_scm[toml] >= 7.0.0"
67
]
7-
build-backend = "setuptools.build_meta"
88

99
[project]
10-
# https://peps.python.org/pep-0621/#readme
11-
requires-python = ">=3.9"
12-
dynamic = ["version"]
13-
14-
name = "subprocess-tee"
15-
16-
description = "subprocess-tee"
17-
readme = "README.md"
1810
authors = [
19-
{"name"="Sorin Sbarnea", "email"="[email protected]"}
11+
{"email" = "[email protected]", "name" = "Sorin Sbarnea"}
2012
]
21-
maintainers = [
22-
{"name"="Sorin Sbarnea", "email"="[email protected]"}
23-
]
24-
license = {text = "MIT"}
2513
classifiers = [
26-
# https://pypi.org/classifiers/
27-
"Development Status :: 5 - Production/Stable",
28-
"Environment :: Console",
29-
"Intended Audience :: Developers",
30-
"Intended Audience :: Information Technology",
31-
"Intended Audience :: System Administrators",
32-
"License :: OSI Approved :: MIT License",
33-
"Operating System :: MacOS",
34-
"Operating System :: POSIX :: Linux",
35-
"Operating System :: POSIX",
36-
"Programming Language :: Python :: 3",
37-
"Programming Language :: Python :: 3.9",
38-
"Programming Language :: Python :: 3.10",
39-
"Programming Language :: Python :: 3.11",
40-
"Programming Language :: Python :: 3.12",
41-
"Programming Language :: Python :: 3.13",
42-
"Programming Language :: Python",
43-
"Topic :: System :: Systems Administration",
44-
"Topic :: Utilities",
14+
# https://pypi.org/classifiers/
15+
"Development Status :: 5 - Production/Stable",
16+
"Environment :: Console",
17+
"Intended Audience :: Developers",
18+
"Intended Audience :: Information Technology",
19+
"Intended Audience :: System Administrators",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: MacOS",
22+
"Operating System :: POSIX :: Linux",
23+
"Operating System :: POSIX",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python",
31+
"Topic :: System :: Systems Administration",
32+
"Topic :: Utilities"
4533
]
34+
description = "subprocess-tee"
35+
dynamic = ["version"]
4636
keywords = ["subprocess", "asyncio"]
47-
48-
[project.urls]
49-
homepage = "https://github.com/pycontribs/subprocess-tee"
50-
documentation = "https://subprocess-tee.readthedocs.io"
51-
repository = "https://github.com/pycontribs/subprocess-tee"
52-
changelog = "https://github.com/pycontribs/subprocess-tee/releases"
37+
license = {text = "MIT"}
38+
maintainers = [
39+
{"email" = "[email protected]", "name" = "Sorin Sbarnea"}
40+
]
41+
name = "subprocess-tee"
42+
readme = "README.md"
43+
# https://peps.python.org/pep-0621/#readme
44+
requires-python = ">=3.9"
5345

5446
[project.optional-dependencies]
5547
docs = [
@@ -63,33 +55,44 @@ docs = [
6355
"mkdocstrings",
6456
"mkdocstrings-python",
6557
"pillow",
66-
"pymdown-extensions",
58+
"pymdown-extensions"
6759
]
68-
test =[
69-
"enrich>=1.2.6",
70-
"molecule>=3.4.0", # ansible is needed but no direct imports are made
71-
"pytest-cov>=2.12.1",
72-
"pytest-instafail",
73-
"pytest-plus>=0.2",
74-
"pytest-xdist>=2.3.0",
75-
"pytest>=6.2.5",
60+
test = [
61+
"enrich>=1.2.6",
62+
"molecule>=3.4.0", # ansible is needed but no direct imports are made
63+
"pytest-cov>=2.12.1",
64+
"pytest-instafail",
65+
"pytest-plus>=0.2",
66+
"pytest-xdist>=2.3.0",
67+
"pytest>=6.2.5"
7668
]
7769

70+
[project.urls]
71+
changelog = "https://github.com/pycontribs/subprocess-tee/releases"
72+
documentation = "https://subprocess-tee.readthedocs.io"
73+
homepage = "https://github.com/pycontribs/subprocess-tee"
74+
repository = "https://github.com/pycontribs/subprocess-tee"
75+
7876
[tool.isort]
79-
profile = "black"
8077
known_first_party = "subprocess_tee"
78+
profile = "black"
8179

8280
[tool.mypy]
83-
python_version = "3.9"
8481
color_output = true
85-
error_summary = true
8682
disallow_any_generics = true
8783
disallow_any_unimported = true
8884
disallow_untyped_calls = true
8985
disallow_untyped_defs = true
86+
error_summary = true
87+
python_version = "3.9"
9088
warn_redundant_casts = true
9189
warn_return_any = true
9290
warn_unused_configs = true
9391

9492
[tool.setuptools_scm]
9593
local_scheme = "no-local-version"
94+
95+
[tool.tomlsort]
96+
in_place = true
97+
sort_inline_tables = true
98+
sort_table_keys = true

0 commit comments

Comments
 (0)