Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (129 loc) · 3.79 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (129 loc) · 3.79 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
137
138
139
140
141
142
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "taskmanagement_app"
version = "0.13.5"
description = "A task management application"
authors = ["Hannes Brandstätter-Müller <hannes.mueller@gmail.com>"]
readme = "README.md"
license = "MIT"
packages = [{include = "taskmanagement_app"}]
[tool.poetry.dependencies]
python = ">=3.14,<3.15"
alembic = "1.18.4"
annotated-types = "0.8.0"
anyio = "4.15.1"
appdirs = "1.4.4"
apscheduler = "3.11.2"
argcomplete = "3.7.2"
argparse = "1.4.0"
bcrypt = ">=5.0.0,<5.1.0"
cffi = "2.1.1"
fastapi = "0.161.1"
gunicorn = ">=26.2.0,<26.3.0"
starlette = "1.10.0"
uvicorn = {version = "0.44.0", extras = ["standard"]}
sqlalchemy = "2.1.6"
pydantic = "2.14.1"
"pydantic-settings" = "2.16.1"
"python-dotenv" = "1.2.4"
"python-jose" = {version = "3.5.0", extras = ["cryptography"]}
"python-multipart" = "0.0.32"
httpx = "0.28.1"
reportlab = "5.1.0"
"python-escpos" = "3.1"
pyusb = ">=1.2.1,<2.0.0"
"qrcode" = {version = "8.2", extras = ["pil"]}
"email-validator" = ">=2.2.0,<3.0.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=9.0.0,<10.0.0"
pytest-cov = ">=7.0.0,<8.0.0"
pytest-asyncio = ">=1.0.0,<2.0.0"
black = ">=26.3.1,<27.0.0"
flake8 = ">=7.4.1,<7.5.0"
isort = "*"
mypy = ">=1.0.0"
types-python-jose = "*"
types-python-dateutil = "*"
types-requests = "*"
types-setuptools = "*"
types-qrcode = "*"
httpx = ">=0.25.0,<0.29.0"
pytest-gremlins = ">=1.7.0,<2.0.0"
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
skip = ["venv", ".venv", ".git", "__pycache__", "output", "dist", "build", ".pytest_cache", ".coverage", "htmlcov"]
known_first_party = ["taskmanagement_app"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_optional = true
exclude = "venv/"
namespace_packages = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = "taskmanagement_app.*"
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = ["pytest.*", "fastapi.*", "sqlalchemy.*", "escpos.*", "alembic.*", "reportlab.*", "jose.*", "pydantic_settings.*", "setuptools.*", "usb", "usb.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "alembic.*"
ignore_errors = true
[tool.flake8]
max-line-length = 88 # Match black's line length
exclude = [".git", "__pycache__", "build", "dist", "venv"]
per-file-ignores = """
# Allow unused imports in __init__.py files
__init__.py: F401,W391
# Allow line break before/after binary operator and module level imports not at top in test files
test_*.py: E501,E402
"""
ignore = [
"W503", # Allow line break before binary operator
"W504", # Allow line break after binary operator
"D103", # Don't require docstrings for tests
]
[tool.pytest-gremlins]
paths = ["taskmanagement_app"]
exclude = ["**/migrations/*"]
operators = ["comparison", "arithmetic", "boolean", "boundary", "return"]
cache = true
report = ["console"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --cov=taskmanagement_app --cov-report=term-missing"
markers = [
"smoke: Lightweight smoke tests that verify basic API health",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]