Skip to content

Commit beda87c

Browse files
committed
Configure pyproject-fmt to add Python 3.13 classifier
1 parent 0771c48 commit beda87c

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

.pre-commit-config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ repos:
4040
rev: 2.1.3
4141
hooks:
4242
- id: pyproject-fmt
43-
additional_dependencies: [tox]
4443

4544
- repo: https://github.com/abravalheri/validate-pyproject
4645
rev: v0.18

pyproject.toml

+34-28
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ readme = "README.md"
1212
keywords = [
1313
"osm openstreetmap tiles visualization",
1414
]
15-
license = {text = "MIT"}
16-
maintainers = [{name = "Hugo van Kemenade"}]
17-
authors = [{name = "Colin Bick and Contributors", email = "[email protected]"}]
15+
license = { text = "MIT" }
16+
maintainers = [
17+
{ name = "Hugo van Kemenade" },
18+
]
19+
authors = [
20+
{ name = "Colin Bick and Contributors", email = "[email protected]" },
21+
]
1822
requires-python = ">=3.8"
1923
classifiers = [
2024
"Intended Audience :: Developers",
@@ -33,18 +37,16 @@ classifiers = [
3337
dynamic = [
3438
"version",
3539
]
36-
[project.optional-dependencies]
37-
tests = [
40+
optional-dependencies.tests = [
3841
"coverage",
3942
"pillow>=9.1",
4043
"pytest",
4144
"pytest-cov",
4245
]
43-
[project.urls]
44-
Changelog = "https://github.com/hugovk/osmviz/releases"
45-
Documentation = "https://hugovk.github.io/osmviz/"
46-
Homepage = "https://github.com/hugovk/osmviz"
47-
Source = "https://github.com/hugovk/osmviz"
46+
urls.Changelog = "https://github.com/hugovk/osmviz/releases"
47+
urls.Documentation = "https://hugovk.github.io/osmviz/"
48+
urls.Homepage = "https://github.com/hugovk/osmviz"
49+
urls.Source = "https://github.com/hugovk/osmviz"
4850

4951
[tool.hatch]
5052
version.source = "vcs"
@@ -55,32 +57,36 @@ local_scheme = "no-local-version"
5557
[tool.ruff]
5658
fix = true
5759

58-
[tool.ruff.lint]
59-
select = [
60-
"C4", # flake8-comprehensions
61-
"E", # pycodestyle errors
62-
"EM", # flake8-errmsg
63-
"F", # pyflakes errors
64-
"I", # isort
65-
"ISC", # flake8-implicit-str-concat
66-
"LOG", # flake8-logging
67-
"PGH", # pygrep-hooks
68-
"RUF100", # unused noqa (yesqa)
60+
lint.select = [
61+
"C4", # flake8-comprehensions
62+
"E", # pycodestyle errors
63+
"EM", # flake8-errmsg
64+
"F", # pyflakes errors
65+
"I", # isort
66+
"ISC", # flake8-implicit-str-concat
67+
"LOG", # flake8-logging
68+
"PGH", # pygrep-hooks
6969
"RUF022", # unsorted-dunder-all
70-
"UP", # pyupgrade
71-
"W", # pycodestyle warnings
72-
"YTT", # flake8-2020
70+
"RUF100", # unused noqa (yesqa)
71+
"UP", # pyupgrade
72+
"W", # pycodestyle warnings
73+
"YTT", # flake8-2020
7374
]
74-
extend-ignore = [
75+
lint.extend-ignore = [
7576
"E203", # Whitespace before ':'
7677
"E221", # Multiple spaces before operator
7778
"E226", # Missing whitespace around arithmetic operator
7879
"E241", # Multiple spaces after ','
7980
]
81+
lint.isort.known-first-party = [
82+
"osmviz",
83+
]
84+
lint.isort.required-imports = [
85+
"from __future__ import annotations",
86+
]
8087

81-
[tool.ruff.lint.isort]
82-
known-first-party = ["osmviz"]
83-
required-imports = ["from __future__ import annotations"]
88+
[tool.pyproject-fmt]
89+
max_supported_python = "3.13"
8490

8591
[tool.pytest.ini_options]
8692
addopts = "-W error::DeprecationWarning"

0 commit comments

Comments
 (0)