-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (78 loc) · 1.48 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
[tool.poetry]
name = "telnetio"
version = "0.3.0"
description = "Sans-IO telnet parser"
authors = ["Jordan Speicher <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/uSpike/telnetio"
classifiers = [
"Framework :: AnyIO"
]
packages = [
{ include = "telnetio", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.8,<4"
anyio = {version = "^4", optional = true}
[tool.poetry.dev-dependencies]
anyio = "^4.0.0"
pytest = "^8.0.0"
mypy = "^1.0"
pytest-cov = "^4.0"
[tool.poetry.extras]
anyio = ["anyio"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.9"
strict = true
show_column_numbers = true
show_error_codes = true
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff]
line-length = 120
target-version = "py37"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# bugbear
"B",
]
ignore = [
# loop control variable not used in body
"B007",
# redefinition of variable name in new scope
"F823"
]
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
docstring-code-format = true
[tool.isort]
profile = "black"
line_length = 120
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=src --cov-report=term-missing --no-cov-on-fail"