-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
86 lines (74 loc) · 1.54 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
[tool.poetry]
name = "spellcheck-microservice"
version = "4.0.0"
description = "Microservice for spellchecking"
authors = ["Denis Anikin <ad@xfenix.ru>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.10"
gunicorn = "*"
uvicorn = "*"
pyenchant = "*"
toml = "*"
pylru = "*"
aiopath = "*"
anyio = "*"
sentry-sdk = "*"
pydantic-settings = "*"
fastapi = "*"
structlog = "*"
urlextract = "*"
[tool.poetry.group.dev.dependencies]
httpx = "*"
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
mypy = "*"
requests = "*"
types-requests = "*"
Faker = "*"
vulture = "*"
types-toml = "*"
pytest-repeat = "*"
ruff = "*"
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
select = ["ALL"]
ignore = ["D1", "D203", "D213", "FA102", "ANN101", "COM812", "ISC001"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.isort]
no-lines-before = ["standard-library", "local-folder"]
known-third-party = []
known-local-folder = ["whole_app"]
lines-after-imports = 2
[tool.ruff.extend-per-file-ignores]
"tests/*.py" = [
"ANN001",
"ANN002",
"ANN003",
"ANN401",
"S101",
"PLR2004",
"S311",
]
"tests/_fixtures.py" = ["E501"]
[tool.mypy]
plugins = "pydantic.mypy"
strict = true
ignore_missing_imports = true
[tool.vulture]
exclude = ["whole_app/settings.py"]
[tool.pytest.ini_options]
addopts = "--cov . --cov-report term-missing"
[tool.coverage.report]
exclude_also = [
"if typing.TYPE_CHECKING",
]
[tool.coverage.run]
omit = ["scripts/*"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"