-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
96 lines (83 loc) · 2.12 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
[tool.poetry]
name = "vumi2"
version = "0.3.2.dev0"
description = "Vumi, but with Python3 and Trio async"
authors = ["Praekelt.org <dev@praekelt.org>"]
license = "BSD 3-Clause"
readme = "README.md"
repository = "https://github.com/praekeltfoundation/vumi2"
packages = [
{ include = "vumi2", from = "src" }
]
include = [
{ path = "tests", format = "sdist" }
]
[tool.poetry.dependencies]
python = "^3.11"
trio = "^0.24.0"
async-amqp = "^0.5.5"
attrs = "^23.2.0"
cattrs = "^23.2.3"
PyYAML = "^6.0.1"
sentry-sdk = "^2.8.0"
quart-trio = "^0.11.1"
hypercorn = "^0.16.0"
"smpp.pdu3" = "^0.6"
httpx = "^0.26.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
pytest = "^8.0.0"
pytest-trio = "^0.8.0"
pytest-cov = "^4.1.0"
ruff = "^0.2.1"
Sphinx = "^7.2.6"
sphinxcontrib-httpdomain = "^1.8.1"
trio-typing = "^0.10.0"
types-pyyaml = "^6.0.12.12"
[tool.poetry.scripts]
vumi2 = "vumi2.cli:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
preview = true
[tool.mypy]
files = "."
# TODO: Fix the unreachable code and uncomment this.
# warn_unreachable = true
ignore_missing_imports = false
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "vumi2.*"
# TODO: Fix the untyped defs and uncomment this.
# disallow_untyped_defs = true
[tool.pytest.ini_options]
trio_mode = true
addopts = "--cov=src --cov-report=term-missing"
[tool.coverage.report]
exclude_also = ["@overload"]
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = [
"E", "F", "W", # pycodestyle + pyflakes == flake8 - mccabe
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"S", # flake8-bandit
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"PT", # flake8-pytest-style
"RUF", # ruff-specific rules
]
ignore = [
"SIM117", # Nested `with` is often more readable.
]
[tool.ruff.lint.isort]
known-first-party = ["vumi2"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # It's okay to use `assert` in tests.
]