-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
125 lines (110 loc) · 3.59 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.black]
line-length = 120
[tool.mypy]
packages = ["asyncio_pool", "tests"]
strict = true
[tool.poetry]
authors = ["Kyle Smith <[email protected]>"]
classifiers = [
"Intended Audience :: Developers",
"Framework :: AsyncIO",
"Topic :: Software Development :: Libraries :: Python Modules",
]
description = "A pool of coroutine functions."
documentation = "https://smithk86.github.io/asyncio-pool-ng"
homepage = "https://github.com/smithk86/asyncio-pool-ng"
license = "MIT"
name = "asyncio-pool-ng"
packages = [{ include = "asyncio_pool" }]
readme = "README.md"
repository = "https://github.com/smithk86/asyncio-pool-ng"
version = "0.8.1"
[tool.poetry.dependencies]
python = ">=3.11,<4"
[tool.poetry.group.dev.dependencies]
mypy = "*"
pytest = ">=7.0"
pytest-asyncio = ">=0.20"
pytest-mypy = "*"
[tool.poetry.group.docs.dependencies]
mkdocs = "*"
mkdocs-material = "*"
mkdocstrings = { version = "*", extras = ["python"] }
[tool.poetry.group.code.dependencies]
black = "*"
pre-commit = "*"
[tool.poetry.scripts]
pytest = "pytest:main"
[tool.pytest.ini_options]
addopts = "--mypy"
testpaths = ["tests"]
[tool.slotscheck]
strict-imports = false
[tool.ruff]
exclude = ["__pycache__", "venv", ".venv"]
line-length = 120 # match Black
target-version = 'py311'
[tool.ruff.lint]
ignore = [
"A003", # flake8-builtins - class attribute {name} is shadowing a python builtin
"B010", # flake8-bugbear - do not call setattr with a constant attribute value
"D100", # pydocstyle - missing docstring in public module
"D101", # pydocstyle - missing docstring in public class
"D102", # pydocstyle - missing docstring in public method
"D103", # pydocstyle - missing docstring in public function
"D104", # pydocstyle - missing docstring in public package
"D105", # pydocstyle - missing docstring in magic method
"D106", # pydocstyle - missing docstring in public nested class
"D107", # pydocstyle - missing docstring in __init__
"D202", # pydocstyle - no blank lines allowed after function docstring
"D205", # pydocstyle - 1 blank line required between summary line and description
"D415", # pydocstyle - first line should end with a period, question mark, or exclamation point
"E501", # pycodestyle line too long, handled by black
"UP037", # pyupgrade - removes quotes from type annotation
]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"ERA", # eradicate
"EXE", # flake8-executable
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PLC", # pylint - convention
"PLE", # pylint - error
"PLW", # pylint - warning
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle - warning
"YTT", # flake8-2020
]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.*" = ["BLE001", "S101"]
"tests/loadtest.py" = ["T201"]