-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (90 loc) · 2.1 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
[build-system]
requires = ["setuptools", "build"]
build-backend = "setuptools.build_meta"
[project]
name = "unipoll-api"
version = "0.12.2"
description = "Unipoll API"
authors = [{email = "[email protected]"}, {name = "University Polling"}]
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
classifiers = [
"Framework :: FastAPI",
"Programming Language :: Python :: 3",
]
dependencies = [
'beanie',
'colorama',
'fastapi',
'fastapi-users[beanie]',
'pydantic-settings',
'uvicorn[standard]',
]
[project.scripts]
unipoll-api = "unipoll_api.app:cli_entry_point"
[project.optional-dependencies]
dev = [
'pytest',
'pytest-cov',
'faker',
'flake8',
'tox',
'mypy',
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.semantic_release]
version_variables = ["src/unipoll_api/__version__.py:version"]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
major_on_zero = true
upload_to_pypi = false
upload_to_release = true
commit_version_number = true
tag_commit = true
changelog_file = "CHANGELOG.md"
build_command = "python -m pip install build && python -m build"
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
"revert"
]
minor_tags = ["feat", "build"]
patch_tags = ["chore", "ci", "fix", "perf", "style", "refactor", "test", "revert"]
[tool.flake8]
max-line-length = 120
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
addopts = "--cov --cov-report lcov"
asyncio_mode="auto"
filterwarnings = [
'ignore:cgi is deprecated:DeprecationWarning',
"ignore:'crypt' is deprecated:DeprecationWarning",
'ignore:pkg_resources is deprecated:DeprecationWarning',
"ignore::pytest.PytestCollectionWarning"
]
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = false
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
no_implicit_reexport = true
plugins = [
"pydantic.mypy"
]