forked from EuroPython/discord
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.85 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.85 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
[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.9"
dependencies = [
"discord-py>=2.3.1",
"aiofiles>=24.1.0",
"aiohttp>=3.11.16",
"pydantic>=2.8.2",
"unidecode>=1.3.8",
"tomli>=2.2.1; python_version < '3.11'",
"typing_extensions>=4.13.2; python_version < '3.11'",
"eval-type-backport>=0.2.2; python_version < '3.10'",
]
[dependency-groups]
dev = [
"pre-commit>=4.2.0",
"pytest>=8.3.5",
"pytest-aiohttp>=1.1.0",
"pytest-asyncio>=0.26.0",
"ruff>=0.11.6",
]
[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",
# deprecated rules
"UP038",
# 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']