-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (122 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
136 lines (122 loc) · 2.71 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
128
129
130
131
132
133
134
135
136
[project]
name = "ttmp32gme"
dynamic = ["version"]
description = "TipToi MP3 to GME converter - Python backend"
requires-python = ">=3.11"
readme = "README.md"
license = {file = "LICENSE"}
dependencies = [
"flask>=3.0.0",
"werkzeug>=3.0.0",
"packaging>=23.0",
"mutagen>=1.47.0",
"pillow>=10.0.0",
"requests>=2.31.0",
"pydantic>=2.0.0",
"waitress>=3.0.0",
]
[project.optional-dependencies]
test = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-html>=4.0.0",
"selenium>=4.15.0",
"pyyaml",
]
dev = [
"pre-commit>=3.5.0",
"black>=24.0.0",
"flake8>=7.0.0",
"flake8-bugbear>=24.0.0",
"isort>=5.13.0",
"pyright>=1.1.407",
]
build = [
"pyinstaller>=6.0.0",
]
[project.scripts]
ttmp32gme = "ttmp32gme.ttmp32gme:main"
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "src/ttmp32gme/_version.py"
[tool.setuptools.package-data]
ttmp32gme = ["config.sqlite"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
markers = [
"e2e: End-to-end tests using Selenium (deselect with '-m \"not e2e\"')",
"slow: Slow tests (deselect with '-m \"not slow\"')",
]
addopts = [
"--verbose",
"--cov=ttmp32gme",
"--cov-report=term-missing",
"--cov-report=html",
]
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| node_modules
| __pycache__
)/
'''
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
skip_glob = ["build/*", "dist/*", "node_modules/*", "__pycache__/*", ".venv/*"]
[tool.pyright]
include = ["src"]
exclude = [
"**/__pycache__",
"**/.pytest_cache",
"**/node_modules",
"**/.venv",
"build",
"dist",
"tests"
]
typeCheckingMode = "strict"
pythonVersion = "3.11"
# Disable some overly strict checks that don't add value
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
reportUntypedFunctionDecorator = false
reportUnknownParameterType = false
[tool.uv]
# Using same dependencies as project.optional-dependencies.test