Skip to content

Commit 4e7728a

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

File tree

2 files changed

+46
-35
lines changed

2 files changed

+46
-35
lines changed

.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-yaml
17+
- id: check-toml
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/sphinx-contrib/sphinx-lint
2029
rev: v1.0.0
2130
hooks:

pyproject.toml

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
11
[project]
22
name = "pyviz-tutorial"
33
version = "24.1.0"
4-
authors = [
5-
{ name="Veit Schiele", email="veit@cusy.io" },
6-
]
74
description = "Training materials for the cusy Python training courses: https://cusy.io/en/seminars"
85
readme = "README.rst"
96
license = "BSD-3-Clause"
107
license-files = [ "LICENSE" ]
8+
authors = [
9+
{ name = "Veit Schiele", email = "veit@cusy.io" },
10+
]
1111
requires-python = ">=3.9"
1212
classifiers = [
13-
"Programming Language :: Python :: 3",
14-
"Operating System :: OS Independent",
13+
"Operating System :: OS Independent",
14+
"Programming Language :: Python :: 3 :: Only",
15+
"Programming Language :: Python :: 3.9",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
1520
]
16-
dependencies = []
21+
dependencies = [ ]
1722

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

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

4649
[tool.setuptools]
47-
packages = []
48-
50+
packages = [ ]
4951

5052
[tool.codespell]
5153
skip = "*.ipynb, ./docs/_build/*"

0 commit comments

Comments
 (0)