-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (108 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
128 lines (108 loc) · 3.19 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
[tool.poetry]
name = "pttbackend"
version = "1.0.0"
description = "Keeps track of mumble instances ordered by people in different contexts"
authors = ["Eero af Heurlin <eero.afheurlin@iki.fi>"]
homepage = "https://gitlab.com/PVARKI-projekti/python-pvas-pttbackend/"
repository = "https://gitlab.com/PVARKI-projekti/python-pvas-pttbackend/"
license = "MIT"
readme = "README.rst"
[tool.poetry.scripts]
pttbackend = "pttbackend.console:pttbackend_cli"
[tool.black]
line-length = 120
target-version = ['py38']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| __pycache__
)
'''
[tool.pytest.ini_options]
junit_family="xunit2"
addopts="--cov=pttbackend --cov-fail-under=65 --cov-branch"
asyncio_mode="strict"
[tool.mypy]
strict=true
[[tool.mypy.overrides]]
module="pttbackend.models.*" # Gino isn't properly typed yet
disallow_subclassing_any=false
[[tool.mypy.overrides]]
module="pttbackend.schemas.*" # pydantic_collections has issues
disallow_subclassing_any=false
[[tool.mypy.overrides]]
module="alembic.*" # alembic generated stuff is all weird to mypy
ignore_errors = true
[tool.pylint.MASTER]
ignore-paths = [
'^alembic/.*'
]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.design]
max-parents = 10
[tool.pylint.messages_control]
disable=["fixme", "W1202", "C0209"]
[tool.pylint.similarities]
min-similarity-lines = 8
ignore-imports = true
[tool.coverage.run]
omit = ["tests/*"]
branch = true
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0" # fastapi-mail depends on 3.8.1 as min and arkia11napi depends on it
libadvian = "^1.0"
click = "^8.0"
#fastapi = ">=0.89,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
fastapi = "^0.88" # 0.89 has a nasty bug
python-dotenv = ">=0.21,<1.0" # explicitly specify this so pydantic.settings can use it
uvicorn = {version = "^0.20", extras = ["standard"]}
gunicorn = "^20.1"
jinja2 = "^3.1"
# FIXME: get from our own nexus or similar, also split the stuff we use from here into separate library
arkia11napi = { git="https://github.com/pvarki/python-pvas-arkia11napi.git", tag="1.0.0"}
gino = "^1.0"
starlette = ">=0.22,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
sqlalchemy-stubs = "^0.4"
pendulum = "^2.1"
pydantic = { version="^1.10", extras=["email"] }
pydantic-collections = ">=0.4,<1.0" # caret behaviour on 0.x is to lock to 0.x.*
alembic = { version="^1.9", optional=true }
psycopg2 = { version="^2.9", optional=true }
azure-identity = "^1.12"
azure-keyvault-secrets = "^4.6"
aiohttp = "^3.8"
[tool.poetry.extras]
migrations = ["alembic", "psycopg2"]
all = ["migrations"]
[tool.poetry.group.dev.dependencies]
pytest = "^7.1"
coverage = "^6.3"
pytest-cov = "^3.0"
pylint = "^2.13"
black = "^22.3"
bandit = "^1.7"
mypy = "^0.942"
pre-commit = "^2.17"
pytest-asyncio = "^0.18"
bump2version = "^1.0"
detect-secrets = "^1.2"
pytest-docker = "^1.0"
docker-compose = "^1.29"
# required for development
alembic = { version="^1.9", optional=false }
psycopg2 = { version="^2.9", optional=false }
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"