-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
96 lines (82 loc) · 2.52 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 = "aioudp"
description = "A better API for asynchronous UDP"
authors = ["Bryan Hu <thatxliner@gmail.com>"]
version = "1.0.1"
readme = "README.md"
license = "GPL-3.0-or-later"
classifiers = [
# Get the list of trove classifiers here: https://pypi.org/classifiers/
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
]
documentation = "https://aioudp.readthedocs.io/en/latest/index.html"
homepage = "https://github.com/ThatXliner/aioudp"
keywords = ["udp", "asyncio"] # Maximum of 5 keywords
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
hypothesis = "^6.68.2"
mypy = "^1.0.1"
pytest = "^7.2.1"
pytest-clarity = "^1.0.1"
pytest-cov = "^4.0.0"
shed = "^0.10.9"
Sphinx = "^6.1.3"
toml = "^0.10.2"
ruff = "^0.1.8"
pytest-asyncio = "^0.23.2"
[tool.poe.tasks]
# Code linting
mypy = { cmd = "mypy aioudp --strict", help = "Run MyPy on codebase" }
ruff = { cmd = "ruff check aioudp", help = "Run Ruff on codebase" }
check_black = { cmd = "black aioudp --check" }
check_imports = { cmd = "ruff check aioudp --select I" }
style = ["check_black", "check_imports"]
codebase = ["ruff", "mypy"]
[tool.poe.tasks.docs]
cmd = "sphinx-build docs build"
help = "Build documentation"
[tool.poe.tasks.format]
cmd = "shed"
help = "Format code"
[tool.poe.tasks.fix-ruff]
cmd = "ruff aioudp --fix"
help = "Ruff autofix"
[tool.poe.tasks.lint]
sequence = ["style", "codebase"]
help = "Lint codebase"
[tool.poe.tasks.test]
cmd = "pytest -vvv --cov=aioudp"
help = "Simply run test suite"
[tool.poe.tasks.ci]
cmd = "pytest -vvv --cov=aioudp --cov-report=xml"
help = "This workflow is for Github Actions"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
# Same as Black.
line-length = 88
select = ["ALL"]
ignore = [
"S101", # "Use of assert detected. I use assert for MyPy
# "D", # "No docs"
# "T20", # "Don't use print or pprint"
# "ANN", # Type annotation errors (or the lack of it)
"ANN101", # The type annotation for `self` is inferred
"FIX002", # "Line contains TODO, consider resolving the issue"
"FBT", # I actually don't know why this exists
# and it seems useless so ignore it
# Fix doc rule conflicts
"D203",
"D213",
]
target-version = "py38"
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["S101", "D"]
"docs/conf.py" = ["INP001", "A001"]