-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (89 loc) · 2.03 KB
/
pyproject.toml
File metadata and controls
99 lines (89 loc) · 2.03 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "staticpin"
version = "0.2.0"
description = "Pin frontend static dependencies for Python web projects"
readme = "README.md"
authors = [
{name = "Daniel Roy Greenfeld", email = "daniel@feldroy.com"}
]
maintainers = [
{name = "Daniel Roy Greenfeld", email = "daniel@feldroy.com"}
]
classifiers = [
"Typing :: Typed",
# TODO: Add additional classifiers as needed
]
license = {text = "MIT"}
dependencies = [
"typer",
"rich",
"httpx>=0.28.1",
]
requires-python = ">= 3.12"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typecheck" },
]
lint = [
"ruff",
]
test = [
"coverage",
"pytest",
]
typecheck = [
"ty",
]
docs = [
"zensical",
"mkdocstrings-python",
]
[project.urls]
bugs = "https://github.com/feldroy/staticpin/issues"
changelog = "https://github.com/feldroy/staticpin/releases"
documentation = "https://feldroy.github.io/staticpin/"
homepage = "https://github.com/feldroy/staticpin"
[project.scripts]
staticpin = "staticpin.cli:app"
sp = "staticpin.cli:app"
[tool.ty]
# All rules are enabled as "error" by default; no need to specify unless overriding.
# Example override: relax a rule for the entire project (uncomment if needed).
# rules.TY015 = "warn" # For invalid-argument-type, warn instead of error.
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/", "tests/"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 50
exclude_also = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"@typing.overload",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.uv]
package = true
default-groups = ["dev"]