Skip to content

Commit 793ff23

Browse files
authored
Update constraints and pyproject.toml. (#20)
1 parent aa09e3b commit 793ff23

File tree

3 files changed

+66
-105
lines changed

3 files changed

+66
-105
lines changed

constraints/default.txt

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,66 @@
11
alabaster==0.7.12
2-
attrs==22.1.0
2+
attrs==22.2.0
33
autodoc-pydantic==1.8.0
44
Babel==2.11.0
55
beautifulsoup4==4.11.1
6-
black==22.10.0
6+
black==22.12.0
77
bleach==5.0.1
88
build==0.9.0
9-
certifi==2022.9.24
9+
certifi==2022.12.7
1010
charset-normalizer==2.1.1
1111
click==8.1.3
1212
colorama==0.4.6
1313
commonmark==0.9.1
14-
coverage==6.5.0
14+
coverage==7.0.3
1515
docutils==0.19
16-
exceptiongroup==1.0.4
17-
furo==2022.9.29
16+
exceptiongroup==1.1.0
17+
furo==2022.12.7
1818
idna==3.4
1919
imagesize==1.4.1
20-
importlib-metadata==5.1.0
20+
importlib-metadata==6.0.0
2121
iniconfig==1.1.1
22-
isort==5.10.1
22+
isort==5.11.4
2323
jaraco.classes==3.2.3
2424
Jinja2==3.1.2
25-
keyring==23.11.0
25+
keyring==23.13.1
2626
livereload==2.6.3
2727
MarkupSafe==2.1.1
2828
more-itertools==9.0.0
2929
mypy==0.991
3030
mypy-extensions==0.4.3
31-
packaging==21.3
32-
pathspec==0.10.2
31+
packaging==22.0
32+
pathspec==0.10.3
3333
pep517==0.13.0
34-
pkginfo==1.9.2
35-
platformdirs==2.5.4
34+
pkginfo==1.9.3
35+
platformdirs==2.6.2
3636
pluggy==1.0.0
37-
pydantic==1.10.2
38-
Pygments==2.13.0
39-
pyparsing==3.0.9
37+
pydantic==1.10.4
38+
Pygments==2.14.0
4039
pytest==7.2.0
4140
pytest-cov==4.0.0
42-
pytz==2022.6
41+
pytz==2022.7
4342
readme-renderer==37.3
4443
requests==2.28.1
4544
requests-toolbelt==0.10.1
4645
rfc3986==2.0.0
4746
rich==12.6.0
48-
ruff==0.0.151
49-
setuptools-scm==7.0.5
50-
shellingham==1.5.0
47+
ruff==0.0.209
48+
setuptools-scm==7.1.0
49+
shellingham==1.5.0.post1
5150
six==1.16.0
5251
snowballstemmer==2.2.0
5352
soupsieve==2.3.2.post1
54-
Sphinx==5.3.0
53+
Sphinx==6.0.0
5554
sphinx-autobuild==2021.3.14
5655
sphinx-basic-ng==1.0.0b1
57-
sphinx-click==4.3.0
56+
sphinx-click==4.4.0
5857
sphinxcontrib-applehelp==1.0.2
5958
sphinxcontrib-devhelp==1.0.2
6059
sphinxcontrib-htmlhelp==2.0.0
6160
sphinxcontrib-jsmath==1.0.1
6261
sphinxcontrib-qthelp==1.0.3
6362
sphinxcontrib-serializinghtml==1.1.5
64-
toml-sort==0.20.1
63+
toml-sort==0.22.1
6564
tomli==2.0.1
6665
tomlkit==0.11.6
6766
tornado==6.2

pyproject.toml

Lines changed: 22 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools",
5-
"setuptools-scm",
4+
"setuptools",
5+
"setuptools-scm"
66
]
77

88
[project]
99
authors = [
10-
{name = "huxuan", email = "i@huxuan.org"},
10+
{email = "i@huxuan.org", name = "huxuan"}
1111
]
1212
classifiers = [
13-
"Development Status :: 4 - Beta",
14-
"Programming Language :: Python :: 3.8",
15-
"Programming Language :: Python :: 3.9",
16-
"Programming Language :: Python :: 3.10",
17-
"Programming Language :: Python :: 3.11",
18-
"License :: OSI Approved :: MIT License",
19-
"Operating System :: OS Independent",
13+
"Development Status :: 4 - Beta",
14+
"License :: OSI Approved :: MIT License",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9"
2020
]
2121
description = "A serious Python project template for out-of-box and production usage."
2222
dynamic = [
23-
"version",
24-
"dependencies",
25-
"optional-dependencies",
23+
"dependencies",
24+
"optional-dependencies",
25+
"version"
2626
]
2727
keywords = [
28-
"out-of-box",
29-
"production",
30-
"project template",
31-
"template",
28+
"out-of-box",
29+
"production",
30+
"project template",
31+
"template"
3232
]
3333
name = "serious-scaffold"
3434
readme = "README.md"
@@ -46,18 +46,18 @@ fail_under = 100
4646

4747
[tool.coverage.run]
4848
omit = [
49-
"src/{{ module_name }}/*",
49+
"src/{{ module_name }}/*"
5050
]
5151

5252
[tool.mypy]
5353
check_untyped_defs = true
5454
disallow_any_unimported = true
5555
disallow_untyped_defs = true
5656
enable_error_code = [
57-
"ignore-without-code",
57+
"ignore-without-code"
5858
]
5959
exclude = [
60-
"src/{{ module_name }}",
60+
"src/{{ module_name }}"
6161
]
6262
no_implicit_optional = true
6363
show_error_codes = true
@@ -84,30 +84,11 @@ extend-ignore = [
8484
"D407",
8585
"D408",
8686
"D409",
87-
"D413",
88-
]
89-
extend-select = [
90-
"I",
91-
"D",
92-
"U",
93-
"N",
94-
"S",
95-
"C",
96-
"FBT",
97-
"B",
98-
"A",
99-
"I25",
100-
"T",
101-
"Q",
102-
"ANN",
103-
"YTT",
104-
"BLE",
105-
"C90",
106-
"RUF",
107-
"M",
87+
"D413"
10888
]
10989
fix = true
11090
per-file-ignores = {"tests/*" = ["S101"]}
91+
select = ["ALL"]
11192
src = ["src"]
11293
target-version = "py38"
11394

pyproject.toml.jinja

Lines changed: 22 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools",
5-
"setuptools-scm",
4+
"setuptools",
5+
"setuptools-scm"
66
]
77

88
[project]
99
authors = [
10-
{name = "{{ author_name }}", email = "{{ author_email }}"},
10+
{email = "{{ author_email }}", name = "{{ author_name }}"}
1111
]
1212
classifiers = [
13-
"Development Status :: 4 - Beta",
14-
"Programming Language :: Python :: 3.8",
15-
"Programming Language :: Python :: 3.9",
16-
"Programming Language :: Python :: 3.10",
17-
"Programming Language :: Python :: 3.11",
18-
"License :: OSI Approved :: MIT License",
19-
"Operating System :: OS Independent",
13+
"Development Status :: 4 - Beta",
14+
"License :: OSI Approved :: MIT License",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9"
2020
]
2121
description = "{{ project_description }}"
2222
dynamic = [
23-
"version",
24-
"dependencies",
25-
"optional-dependencies",
23+
"dependencies",
24+
"optional-dependencies",
25+
"version"
2626
]
2727
keywords = [
28-
"out-of-box",
29-
"production",
30-
"project template",
31-
"template",
28+
"out-of-box",
29+
"production",
30+
"project template",
31+
"template"
3232
]
3333
name = "{{ package_name }}"
3434
readme = "README.md"
@@ -47,7 +47,7 @@ fail_under = 100
4747
[tool.coverage.run]
4848
omit = [
4949
{%- if project_name == "Serious Scaffold Python" %}
50-
"src/{{ '{{ module_name }}' }}/*",
50+
"src/{{ '{{ module_name }}' }}/*"
5151
{%- endif %}
5252
]
5353

@@ -56,11 +56,11 @@ check_untyped_defs = true
5656
disallow_any_unimported = true
5757
disallow_untyped_defs = true
5858
enable_error_code = [
59-
"ignore-without-code",
59+
"ignore-without-code"
6060
]
6161
exclude = [
6262
{%- if project_name == "Serious Scaffold Python" %}
63-
"src/{{ '{{ module_name }}' }}",
63+
"src/{{ '{{ module_name }}' }}"
6464
{%- endif %}
6565
]
6666
no_implicit_optional = true
@@ -88,30 +88,11 @@ extend-ignore = [
8888
"D407",
8989
"D408",
9090
"D409",
91-
"D413",
92-
]
93-
extend-select = [
94-
"I",
95-
"D",
96-
"U",
97-
"N",
98-
"S",
99-
"C",
100-
"FBT",
101-
"B",
102-
"A",
103-
"I25",
104-
"T",
105-
"Q",
106-
"ANN",
107-
"YTT",
108-
"BLE",
109-
"C90",
110-
"RUF",
111-
"M",
91+
"D413"
11292
]
11393
fix = true
11494
per-file-ignores = {"tests/*" = ["S101"]}
95+
select = ["ALL"]
11596
src = ["src"]
11697
target-version = "py38"
11798

0 commit comments

Comments
 (0)