-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (86 loc) · 1.9 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
99
100
[tool.poetry]
name = "wootiv"
version = "0.0.1"
description = "Client library for the wootiv API"
readme = "README.md"
authors = ["Wootiv <dev-feedback@wootiv.com>"]
license = "Apache-2.0"
repository = "https://github.com/tecmie/wootiv-sdk.py"
packages = [
{ include = "wootiv", from = "src" }
]
[tool.poetry.dependencies]
python = "^3.7"
httpx = ">= 0.23.0, < 1"
pydantic = ">= 1.9.0, < 3"
typing-extensions = ">= 4.5, < 5"
anyio = ">= 3.5.0, < 4"
distro = ">= 1.7.0, < 2"
[tool.poetry.group.dev.dependencies]
pyright = "1.1.318"
mypy = "1.4.1"
black = "23.3.0"
respx = "0.19.2"
pytest = "7.1.1"
pytest-asyncio = "0.21.1"
ruff = "0.0.282"
isort = "5.10.1"
time-machine = "^2.9.0"
nox = "^2023.4.22"
nox-poetry = "^1.0.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ["py37"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--tb=short"
xfail_strict = true
log_cli = true
log_level = "INFO"
asyncio_mode = "auto"
filterwarnings = [
"error"
]
[tool.pyright]
# this enables practically every flag given by pyright.
# there are a couple of flags that are still disabled by
# default in strict mode as they are experimental and niche.
typeCheckingMode = "strict"
pythonVersion = "3.7"
exclude = [
"_dev",
".venv",
".nox",
]
reportImportCycles = false
reportPrivateUsage = false
[tool.isort]
profile = "black"
length_sort = true
extra_standard_library = ["typing_extensions"]
[tool.ruff]
line-length = 120
format = "grouped"
target-version = "py37"
select = [
# remove unused imports
"F401",
# bare except statements
"E722",
# print statements
"T201",
"T203",
]
unfixable = [
# disable auto fix for print statements
"T201",
"T203",
]
ignore-init-module-imports = true
[tool.ruff.per-file-ignores]
"bin/**.py" = ["T201", "T203"]
"tests/**.py" = ["T201", "T203"]
"examples/**.py" = ["T201", "T203"]