-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
125 lines (114 loc) · 2.81 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]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "jockey"
authors = [{ name = "Gram", email = "git@orsinium.dev" }]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
dynamic = ["version", "description"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Typing :: Typed",
]
keywords = [
"microservices",
"event-driven",
"distributed",
"web",
"framewrok",
"web framework",
"asyncio",
# message brokers
"kafka",
"nats",
"rabbitmq",
# Python messaging libraries
"arq",
"celery",
"dramatiq",
"huey",
"rq",
"walnats",
]
dependencies = []
[project.optional-dependencies]
test = [
"hypothesis", # property tests
"pytest", # test framework
"pytest-cov", # coverage report
"pytest-asyncio", # running async tests
]
lint = [
"ruff", # linter and formatter
"mypy", # type checker
]
[project.urls]
Source = "https://github.com/orsinium-labs/jockey"
[tool.mypy]
files = ["jockey", "tests", "examples"]
python_version = 3.8
ignore_missing_imports = true
# follow_imports = "silent"
show_error_codes = true
check_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = [
"--cov=jockey",
"--cov-report=html",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=100",
]
asyncio_mode = "auto"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING",
" pass",
"except ImportError:",
"raise NotImplementedError",
"raise RuntimeError.*unreachable.*",
]
[tool.coverage.run]
branch = true
[tool.ruff]
line-length = 90
target-version = "py38"
select = [
"ASYNC", # flake8-async
"B", # flake8-bugbear
"COM", # flake8-commas
"E", # pycodestyle
"F", # pyflakes
"FURB", # refurb
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PL", # pylint
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"W", # pycodestyle
]
ignore = [
"B008", # allow to perorm function call in arguments
"B904", # allow to `raise` from `except`
"PIE790", # allow unnecessary pass statements
"PLR0913", # allow more than 5 parameters in a function
"PLR2004", # allow hardcoded constants
"PLW2901", # allow overriding loop variable
"SIM117", # allow nested with
"SIM105", # allow try-except-pass, it's faster
]
[tool.ruff.flake8-quotes]
inline-quotes = "single"