-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (123 loc) · 3.64 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (123 loc) · 3.64 KB
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
[project]
name = "erasmus"
version = "24.5.1.dev0"
description = ""
authors = [
{name = "Bryan Forbes", email = "bryan@reigndropsfall.net"}
]
license = "BSD-3-Clause"
requires-python = ">=3.13,<3.14"
dependencies = [
'alembic ==1.18.4',
'attrs ==26.1.0',
'beautifulsoup4 ==4.15.0',
'botus_receptus[uvloop,sqlalchemy] @ git+https://github.com/bryanforbes/botus_receptus.git@v26.6.0',
'discord.py[speed] ==2.7.1',
'fluent.runtime ==0.4.0',
'more-itertools ==11.1.0',
]
[project.scripts]
erasmus = 'erasmus.run:main'
[tool.poetry]
packages = [
{ include = "erasmus" }
]
[tool.poetry.group.dev.dependencies]
asyncpg-stubs = "0.31.2"
basedpyright = "1.39.7"
coverage = {version = "7.14.1", extras = ["toml"]}
mypy = "2.1.0"
pre-commit = "4.6.0"
pytest = "9.0.3"
pytest-asyncio = "1.4.0"
pytest-clarity = "1.0.1"
pytest-cov = "7.1.0"
pytest-mock = "3.15.1"
pytest-recording = "0.13.4"
pytest-sugar = "1.1.1"
pytest-xdist = "3.8.0"
ruff = "0.15.17"
[tool.poetry.group.dev.dependencies.pendulum]
version = "3.2.0"
extras = ["test"]
[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 = "py313"
[tool.ruff.format]
quote-style = "single"
[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"]
split-on-trailing-comma = false
[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-type-checking]
runtime-evaluated-base-classes = ["sqlalchemy.orm.DeclarativeBase", "erasmus.db.base.Base"]
[tool.pyright]
include = ["erasmus", "tests"]
exclude = ["alembic"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.13"
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnusedImport = "none"
reportUnusedVariable = "none"
reportImportCycles = "none"
reportImplicitOverride = "error"
enableExperimentalFeatures = true
deprecateTypingAliases = true
enableTypeIgnoreComments = false
reportIgnoreCommentWithoutRule = "error"
reportPrivateLocalImportUsage = "error"
reportImplicitRelativeImport = "error"
reportImplicitAbstractClass = "error"
reportIncompatibleUnannotatedOverride = "error"
reportInvalidAbstractMethod = "error"
[tool.pytest]
minversion = "9.0"
strict = true
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==2.4.1"]
build-backend = "poetry.core.masonry.api"