-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (110 loc) · 2.41 KB
/
pyproject.toml
File metadata and controls
127 lines (110 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[project]
name = "pallets-web"
version = "1.0.0"
description = "Pallets website and content."
readme = "README.md"
license = {file = "LICENSE.txt"}
maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
classifiers = ["Private :: Do Not Upload"]
requires-python = "~=3.13.0"
dependencies = [
"beautifulsoup4",
"feedgen",
"flask",
"flask-sqlalchemy-lite",
"gunicorn",
"lxml",
"markdown-it-py",
"mdit-py-plugins",
"pygments",
]
[dependency-groups]
dev = [
"ruff",
"tox",
"tox-uv",
"python-dotenv",
"watchdog",
]
pre-commit= [
"pre-commit",
]
typing= [
"mypy",
"pyright",
"types-beautifulsoup4",
"types-pygments",
]
[project.urls]
Home = "https://palletsprojects.com"
Source = "https://github.com/pallets/pallets-web/"
[build-system]
requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "pallets"
[tool.mypy]
files = ["src/pallets"]
show_error_codes = true
pretty = true
strict = true
[[tool.mypy.overrides]]
module = [
"feedgen.*",
]
ignore_missing_imports = true
[tool.pyright]
include = ["src/pallets"]
[tool.ruff]
src = ["src"]
fix = true
unsafe-fixes = true
show-fixes = true
output-format = "full"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
[tool.uv]
default-groups = ["dev", "pre-commit", "typing"]
[tool.tox]
envlist = ["style", "typing"]
[tool.tox.env.env_run_base]
package = "wheel"
wheel_build_env = ".pkg"
constrain_package_deps = true
use_frozen_constraints = true
[tool.tox.env.style]
dependency_groups = ["pre-commit"]
skip_install = true
commands = [["pre-commit", "run", "--all-files"]]
[tool.tox.env.typing]
dependency_groups = ["typing"]
commands = [
["mypy"],
["pyright"]
]
[tool.tox.env.update-actions]
labels = ["update"]
dependency_groups = ["gha-update"]
commands = [["gha-update"]]
[tool.tox.env.update-pre_commit]
labels = ["update"]
dependency_groups = ["pre-commit"]
skip_install = true
commands = [["pre-commit", "autoupdate", "-j4"]]
[tool.tox.env.update-requirements]
description = "update uv lock"
labels = ["update"]
dependency_groups = []
no_default_groups = true
skip_install = true
commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]