-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (103 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
116 lines (103 loc) · 2.7 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
[project]
name = "seriesscape"
version = "0.3.0"
description = "SeriesScape is a simple, personal, locally-run web application designed to help you keep track of movies and TV shows."
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"alembic>=1.18.4",
"flask>=3.1.3",
"flask-htmx>=0.4.0",
"flask-migrate>=4.1.0",
"flask-sqlalchemy>=3.1.1",
"python-dateutil>=2.9.0.post0",
"python-dotenv>=1.2.2",
"rich>=14.3.3",
"sqlalchemy>=2.0.48",
]
[dependency-groups]
lint = [
"pyright>=1.1.408",
"ruff>=0.15.8",
"ty>=0.0.26",
]
test = [
"coverage>=7.13.5",
"pytest>=9.0.2",
"pytest-cov>=7.1.0",
"pytest-flask>=1.3.0",
"pytest-mock>=3.15.1",
]
[tool.ruff]
line-length = 88
target-version = "py310"
src = ["apps/desktop/src"]
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"B",
"S",
]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --color=yes --cov=apps/desktop/src/core --cov-report=term-missing"
testpaths = ["apps/desktop/tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.pyright]
include = ["apps/desktop/src/core", "apps/desktop/tests", "scripts/run.py", "scripts/setup.py", "scripts/make_release.py"]
exclude = ["**/__pycache__", ".venv*", "venv*", "**/apps/desktop/migrations/"]
typeCheckingMode = "basic"
pythonVersion = "3.11"
pythonPlatform = "All"
reportMissingImports = "warning"
reportMissingTypeStubs = "none"
reportUnusedVariable = "warning"
reportGeneralTypeIssues = "warning"
reportOptionalSubscript = "warning"
reportOptionalMemberAccess = "warning"
reportOptionalCall = "warning"
reportOptionalOperand = "warning"
reportTypedDictNotRequiredAccess = "warning"
[tool.ty.environment]
python-version = "3.11"
python-platform = "all"
[tool.ty.src]
include = [
"apps/desktop/src",
"apps/desktop/tests",
"scripts/run.py",
"scripts/setup.py",
"scripts/make_release.py",
]
exclude = ["**/__pycache__", ".venv*", "venv*", "**/apps/desktop/migrations/"]
[tool.ty.rules]
unresolved-import = "warn"
possibly-missing-import = "warn"
not-subscriptable = "warn"
unresolved-attribute = "warn"
possibly-missing-attribute = "warn"
call-non-callable = "warn"
unsupported-operator = "warn"
missing-typed-dict-key = "warn"
[tool.coverage.run]
source = ["apps/desktop/src/core"]
branch = true
omit = ["*/__init__.py", "apps/desktop/tests/*"]
[tool.coverage.report]
fail_under = 0
show_missing = true
[tool.coverage.html]
directory = "coverage_html_report"
title = "SeriesScape Test Coverage Report"