-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
107 lines (93 loc) · 2.39 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
101
102
103
104
105
106
107
[tool.poetry]
name = "asynkit"
version = "0.12.0"
description = "A toolkit for Python coroutines"
authors = ["Kristján Valur Jónsson <sweskman@gmail.com>"]
repository = "https://github.com/kristjanvalur/py-asynkit"
readme = "README.md"
keywords = ["asyncio", "eventloop"]
license = "MIT"
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: AsyncIO"
]
include=["src/asynkit/py.typed"]
[tool.poe.tasks]
lint = "ruff ."
black = "black ."
test = "pytest tests examples"
cov = "pytest --cov=asynkit --cov-report term-missing --cov-branch"
typing = "mypy -p asynkit -p tests -p examples"
blacken-docs = "blacken-docs README.md"
blackall = ["black", "blacken-docs"]
check = ["style", "lint", "typing", "cov"]
[tool.poe.tasks.style]
help = "Validate black code style"
cmd = "black . --check --diff"
[tool.poetry.dependencies]
python = "^3.8"
typing-extensions = "^4.4.0"
[tool.poetry.group.dev.dependencies]
mypy = "^0.991"
black = "^22.3.0"
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
poethepoet = "^0.13.1"
ruff = "~0.0.190"
anyio = {extras = ["trio"], version = ">=3.6.0 <3.7.0"} # typing introduced in 3.7
blacken-docs = "^1.13.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
#addopts = "-ra -q"
python_files = [
"test_*.py",
"example_*.py",
]
testpaths = [
"tests",
]
filterwarnings = [
'ignore:You seem to already have a custom sys.excepthook:RuntimeWarning'
]
[tool.ruff]
select = [
"E", "F", "I",
]
src = ["src", ]
# Ignore `F401` (unused import) in all `__init__.py` files
# Ignore `F403` (importing *) in all `__init__.py` files
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.mypy]
[[tool.mypy.overrides]]
module = "asynkit.*"
strict = true
[[tool.mypy.overrides]]
module = ["tests.*", "examples.*"]
check_untyped_defs = false
allow_untyped_defs = true
allow_untyped_calls = true
[[tool.mypy.overrides]]
module = [
"asynkit.compat",
"asynkit.experimental.interrupt",
"asynkit.experimental.priority",
"asynkit.loop.eventloop",
"asynkit.tools",
"tests.test_coro",
]
warn_unused_ignores=false
[[tool.mypy.overrides]]
module = "asynkit.compat"
disable_error_code="call-arg"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@overload",
"@abstractmethod",
"assert False",
"TYPE_CHECKING",
]