-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (63 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
72 lines (63 loc) · 1.65 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "europython-discord"
version = "0.1.0"
description = "All Discord-related things for the EuroPython conference"
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"discord-py>=2.7.1",
"aiofiles>=25.1.0",
"aiohttp>=3.13.2",
"pydantic>=2.12.5",
"unidecode>=1.4.0",
]
[dependency-groups]
dev = [
"pre-commit>=4.5.0",
"pytest>=9.0.1",
"pytest-aiohttp>=1.1.0",
"pytest-asyncio>=1.3.0",
"ruff>=0.15.4",
]
[project.scripts]
run-bot = "europython_discord.bot:main"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"error",
"ignore:'audioop' is deprecated:DeprecationWarning",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# don't require docstrings
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# don't require trailing commas everywhere (incompatible with `ruff format`)
"COM812",
# string formatting in exception messages and logging
"EM101", "EM102", "TRY003", "G004",
# require TYPE_CHECKING blocks for typing-only imports
"TC",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # allow `assert` in tests
"ANN", # don't require type annotations in tests
"PLR2004", # allow magic values in tests
"SLF001", # allow accessing private members in tests
]
"scripts/*" = [
"INP001" # don't require __init__.py file
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
plugins = ['pydantic.mypy']