-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
146 lines (125 loc) · 3.42 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[tool.poetry]
name = "erasmus"
version = "24.5.1.dev0"
description = ""
authors = ["Bryan Forbes <[email protected]>"]
license = "BSD-3-Clause"
packages = [
{ include = "erasmus" }
]
[tool.poetry.dependencies]
python = "^3.12"
alembic = "1.14.0"
attrs = "24.3.0"
beautifulsoup4 = "4.12.3"
more-itertools = "10.5.0"
"fluent.runtime" = "0.4.0"
[tool.poetry.dependencies.botus_receptus]
git = "https://github.com/bryanforbes/botus_receptus.git"
tag = "v24.12.1"
extras = ["uvloop", "sqlalchemy"]
[tool.poetry.dependencies.discord-py]
version = "2.4.0"
extras = ["speed"]
[tool.poetry.group.dev.dependencies]
asyncpg-stubs = "0.30.0"
black = "24.10.0"
coverage = {version = "7.6.9", extras = ["toml"]}
mypy = "1.14.0"
pre-commit = "4.0.1"
pytest = "8.3.4"
pytest-asyncio = "0.25.0"
pytest-clarity = "1.0.1"
pytest-cov = "6.0.0"
pytest-mock = "3.14.0"
pytest-recording = "0.13.2"
pytest-sugar = "1.0.0"
pytest-xdist = "3.6.1"
ruff = "0.8.4"
[tool.poetry.group.dev.dependencies.pendulum]
version = "3.0.0"
extras = ["test"]
[tool.poetry.scripts]
erasmus = 'erasmus.run:main'
[tool.black]
line-length = 88
target-version = ["py312"]
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.ruff_cache
| \.venv
| htmlcov
)/
'''
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"^\\s+pass$",
"^\\s*if TYPE_CHECKING:",
"^\\s*\\.\\.\\.\\s*$"
]
omit = [
"erasmus/cogs/bible/testing_server_preferences_group.py"
]
[tool.ruff]
extend-exclude = [".venv*"]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"ANN", "B", "B9", "BLE", "C", "C4", "C9", "E", "EXE", "F", "FBT", "G",
"I", "I002", "ISC", "INP", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "Q", "RET",
"RSE", "S", "SIM", "T10", "T20", "TC", "TID251", "TRY", "UP", "W", "RUF"
]
ignore = ["PLR0913", "PLR2004", "TRY003"]
[tool.ruff.lint.per-file-ignores]
"*.pyi" = ["ANN401", "E501", "E701", "E741", "F401", "F403", "F405", "F811", "FBT001", "FBT002", "PGH003"]
"erasmus/cogs/*.py" = ["FBT"]
"tests/*.py" = ["ANN401", "FBT001", "FBT002", "PGH003", "PLR0912", "S101"]
"alembic/*.py" = ["ANN20", "ANN401", "INP", "PGH003"]
[tool.ruff.lint.isort]
extra-standard-library = ["typing_extensions", "_typeshed"]
known-first-party = ["erasmus"]
known-third-party = ["alembic"]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"typing.TypeVar".msg = "Use `typing_extensions.TypeVar` instead."
[tool.pyright]
include = ["erasmus", "tests", "stubs"]
stubPath = "./stubs"
venvPath = "."
venv = ".venv"
pythonVersion = "3.12"
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnusedImport = "none"
reportUnusedVariable = "none"
reportImportCycles = "none"
reportImplicitOverride = "error"
deprecateTypingAliases = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=erasmus --cov-branch --cov-report=term -nauto --dist=loadscope"
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[build-system]
requires = ["poetry_core==1.9.1"]
build-backend = "poetry.core.masonry.api"