-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (69 loc) · 2.29 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
[project]
name = "flask-squeeze"
version = "3.3.3"
description = "Compress and minify Flask responses!"
readme = "README.md"
authors = [{ name = "Marcel Kröker", email = "[email protected]" }]
license = { file = "LICENSE" }
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules"
]
requires-python = ">=3.8, <3.14"
########################################################################################
#### MARK: Dependencies
dependencies = [
"flask>=1",
"brotli~=1.1",
"rjsmin~=1.2",
"rcssmin~=1.2",
]
[dependency-groups]
dev = [
"pytest-cov ~= 5.0.0",
"ruff>=0.9.3",
]
########################################################################################
#### MARK: Packaging
[tool.setuptools]
packages = ["flask_squeeze"]
license-files = [] # Workaround for https://github.com/astral-sh/uv/issues/9513
[tool.uv]
package = true
########################################################################################
#### MARK: Ruff
[tool.ruff]
show-fixes = true
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN202", # Missing return type annotation for private function
"E501", # line length
"UP006", # use Dict (not possible in python 3.8)
"UP007", # use X | Y for union (not possible in python 3.8)
"UP035", # use typing Dict and List (not possible in python 3.8)
"W191", # indentation contains tabs
"S101", # Use of `assert` detected
"ERA001", # Found commented-out code
"D", # docstrings
"T201", # `print` found
"FBT001", # Boolean-typed positional argument in function definition
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
"FIX002", # Line contains TODO, consider resolving the issue
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...`
"TD003", # Missing issue link on the line following this TODO
]
[tool.ruff.format]
indent-style = "tab"
quote-style = "double"
########################################################################################
#### MARK: Testing
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]