Skip to content

Commit cc37e2e

Browse files
committed
📝 🔧 Check and format pyproject.toml
* Add pyproject-fmt and validate-pyproject
1 parent 0576d0a commit cc37e2e

File tree

2 files changed

+52
-39
lines changed

2 files changed

+52
-39
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,25 @@ repos:
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
1313
rev: v6.0.0
1414
hooks:
15-
- id: trailing-whitespace
16-
- id: end-of-file-fixer
15+
- id: check-json
16+
types: [file] # override `types: [json]`
17+
files: \.(json|ipynb)$
18+
- id: check-toml
1719
- id: check-yaml
1820
types: [file]
1921
files: \.(yml|yaml|cff)$
2022
- id: check-added-large-files
2123
args: ['--maxkb=2048']
22-
- id: check-json
23-
types: [file] # override `types: [json]`
24-
files: \.(json|ipynb)$
24+
- id: end-of-file-fixer
25+
- id: trailing-whitespace
26+
- repo: https://github.com/tox-dev/pyproject-fmt
27+
rev: v2.7.0
28+
hooks:
29+
- id: pyproject-fmt
30+
- repo: https://github.com/abravalheri/validate-pyproject
31+
rev: v0.24.1
32+
hooks:
33+
- id: validate-pyproject
2534
- repo: https://github.com/sphinx-contrib/sphinx-lint
2635
rev: v1.0.0
2736
hooks:

pyproject.toml

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,54 @@
11
[project]
2-
name = "Python4DataScience"
2+
name = "python4datascience"
33
version = "24.2.0"
4-
authors = [
5-
{ name="Veit Schiele", email="veit@cusy.io" },
6-
]
74
description = "Teaching materials for the cusy training courses on Python-based data science workflows: https://cusy.io/en/seminars"
85
readme = "README.rst"
6+
authors = [
7+
{ name = "Veit Schiele", email = "veit@cusy.io" },
8+
]
99
requires-python = ">=3.9"
1010
classifiers = [
11-
"Programming Language :: Python :: 3",
12-
"License :: OSI Approved :: BSD License",
13-
"Operating System :: OS Independent",
11+
"License :: OSI Approved :: BSD License",
12+
"Operating System :: OS Independent",
13+
"Programming Language :: Python :: 3 :: Only",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
1419
]
15-
dependencies = []
20+
dependencies = [ ]
1621

17-
[dependency-groups]
18-
docs = [
19-
"furo",
20-
"ipython",
21-
"ipywidgets",
22-
"matplotlib",
23-
"nbsphinx",
24-
"notebook",
25-
"sphinx<8.2",
26-
"sphinx-copybutton",
27-
"sphinx-lint",
28-
"sphinx-notfound-page",
29-
"sphinx-sitemap",
30-
"sphinx_inline_tabs",
31-
"sphinxcontrib-svg2pdfconverter",
32-
"sphinxext.opengraph", # matplotlib is required for social cards
33-
]
22+
urls."Bug Tracker" = "https://github.com/cusyio/Python4DataScience/issues"
23+
urls."Homepage" = "https://github.com/cusyio/Python4DataScience/"
3424

25+
[dependency-groups]
3526
dev = [
36-
{ include-group = "docs" },
37-
"pre-commit",
38-
"codespell",
39-
"vale",
27+
"codespell",
28+
"pre-commit",
29+
"reuse>=5.0.2",
30+
"vale",
31+
{ include-group = "docs" },
32+
]
33+
docs = [
34+
"furo",
35+
"ipython",
36+
"ipywidgets",
37+
"matplotlib",
38+
"nbsphinx",
39+
"notebook",
40+
"sphinx<8.2",
41+
"sphinx-copybutton",
42+
"sphinx-inline-tabs",
43+
"sphinx-lint",
44+
"sphinx-notfound-page",
45+
"sphinx-sitemap",
46+
"sphinxcontrib-svg2pdfconverter",
47+
"sphinxext-opengraph", # matplotlib is required for social cards
4048
]
41-
42-
[project.urls]
43-
"Homepage" = "https://github.com/cusyio/Python4DataScience/"
44-
"Bug Tracker" = "https://github.com/cusyio/Python4DataScience/issues"
4549

4650
[tool.setuptools]
47-
packages = []
51+
packages = [ ]
4852

4953
[tool.codespell]
5054
skip = "*.csv, *.html, *.pdf, *.ipynb, ./docs/_build/*, ./styles/*"

0 commit comments

Comments
 (0)