Skip to content

Commit f83d50d

Browse files
committed
🔧 Check and format pyproject.toml
* Add pyproject-fmt and validate-pyproject
1 parent 4ff5b61 commit f83d50d

2 files changed

Lines changed: 47 additions & 35 deletions

File tree

.pre-commit-config.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,23 @@ repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
99
rev: v6.0.0
1010
hooks:
11-
- id: trailing-whitespace
12-
- id: end-of-file-fixer
13-
- id: check-yaml
1411
- id: check-added-large-files
1512
args: ['--maxkb=2048']
1613
- id: check-json
1714
types: [file] # override `types: [json]`
1815
files: \.(json|ipynb)$
16+
- id: check-toml
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: trailing-whitespace
20+
- repo: https://github.com/tox-dev/pyproject-fmt
21+
rev: v2.7.0
22+
hooks:
23+
- id: pyproject-fmt
24+
- repo: https://github.com/abravalheri/validate-pyproject
25+
rev: v0.24.1
26+
hooks:
27+
- id: validate-pyproject
1928
- repo: https://github.com/pycqa/isort
2029
rev: 7.0.0
2130
hooks:

pyproject.toml

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,52 @@
11
[project]
22
name = "pyviz-tutorial"
33
version = "24.1.0"
4-
authors = [
5-
{ name="Veit Schiele", email="veit@cusy.io" },
6-
]
74
description = "Schulungsmaterialen für die cusy Python-Schulungen: https://cusy.io/de/seminare"
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-
"sphinx<8.2",
25-
"sphinx-inline-tabs",
26-
"sphinx-lint",
27-
"sphinx-notfound-page",
28-
"sphinx-sitemap",
29-
"sphinx_copybutton",
30-
"sphinxcontrib-svg2pdfconverter",
31-
"sphinxext.opengraph", # matplotlib is required for social cards
32-
]
22+
urls."Bug Tracker" = "https://github.com/veit/pyviz-tutorial/issues"
23+
urls."Homepage" = "https://github.com/veit/pyviz-tutorial/"
3324

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

4548
[tool.setuptools]
46-
packages = []
49+
packages = [ ]
4750

4851
[tool.codespell]
4952
skip = "*.ipynb, *.rst, *.svg, ./pyviz_tutorial.egg-info/*"

0 commit comments

Comments
 (0)