-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
203 lines (180 loc) · 4.79 KB
/
pyproject.toml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
[project]
name = "uv-secure"
dynamic = ["version"]
description = "Scan your uv.lock file for dependencies with known vulnerabilities"
readme = "README.md"
authors = [
{ name = "Owen Lamont", email = "[email protected]" }
]
requires-python = ">=3.9"
keywords = [
"uv", "uv.lock", "vulnerabilities"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"anyio>=4.7.0",
"asyncer>=0.0.8",
"httpx>=0.28.1",
"inflect>=7.4.0",
"pydantic>=2.10.3",
"rich>=13.9.4",
'tomli; python_version < "3.11"',
"typer>=0.15.1",
"uvloop>=0.21.0 ; sys_platform != 'win32'",
"winloop>=0.1.7 ; sys_platform == 'win32'",
]
[project.scripts]
uv-secure = "uv_secure.run:app"
[project.urls]
Repository = "https://github.com/owenlamont/uv-secure"
Releases = "https://github.com/owenlamont/uv-secure/releases"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.paths]
source = [
"src",
"/Users/runner/work/uv-secure/uv-secure/src",
"/home/runner/work/uv-secure/uv-secure/src",
"D:/a/uv-secure/uv-secure/src"
]
tests = [
"tests",
"/Users/runner/work/uv-secure/uv-secure/tests",
"/home/runner/work/uv-secure/uv-secure/tests",
"D:/a/uv-secure/uv-secure/tests"
]
[tool.hatch.version]
path = "src/uv_secure/__version__.py"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
python_version = "3.9"
files = ["src"]
ignore_missing_imports = true
follow_imports = "silent"
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
filterwarnings = [
"error",
]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py39"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = true
line-ending = "lf"
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
select = [
"A",
"ASYNC",
"B",
"C4",
"D",
"DOC",
"E",
"F",
"FURB",
"I",
"ISC",
"N",
"NPY",
"PD",
"PERF",
"PT",
"PTH",
"Q",
"S",
"RET",
"RUF",
"SIM",
"UP"
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D202", # No blank lines allowed after function docstring
"D213", # Multi-line docstring summary should start at the second line
"D214", # Section is over-indented
"D215", # Section underline is over-indented
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
"D415", # First line should end with a period, question mark, or exclamation
"D416", # Section name should end with a colon
"D417", # Missing argument descriptions in the docstring
"D418", # Function/ Method decorated with @overload shouldn't contain a docstring
"E203", # Whitespace before ':' (fights ruff format)
"ISC001", # Implicitly concatenated string literals on one line
]
per-file-ignores = { "tests/**" = ["D102", "D103", "S101"] }
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = [
"B905", # Enforce strict argument on zip - but don't autofix as strict=False
]
[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = false
[tool.ruff.lint.isort]
case-sensitive = false
combine-as-imports = true
force-sort-within-sections = true
lines-after-imports = 2
order-by-type = false
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder"
]
split-on-trailing-comma=false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.typos]
[dependency-groups]
dev = [
"coverage>=7.6.9",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-httpx>=0.35.0",
"pytest-mock>=3.14.0",
]