-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
87 lines (77 loc) · 1.76 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "pinball_map_bot"
version = "0.1.0"
description = "A Discord bot to monitor pinballmap.com for machine changes."
authors = [
{name = "Froeht", email = "froeht@users.noreply.github.com"},
]
requires-python = ">=3.9"
dependencies = [
"discord.py",
"requests",
"python-dotenv",
"sqlalchemy>=2.0.0",
"google-cloud-secret-manager",
"cloud-sql-python-connector[pg8000]",
"aiohttp",
"colorama",
"alembic",
"watchdog",
]
[project.scripts]
"pinball-bot" = "src.main:main"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"pytest-xdist",
"pytest-cov",
"ruff",
"pre-commit",
"prettier",
]
[tool.setuptools.packages.find]
where = ["src"]
# Ruff configuration - our single tool for Python code quality
# Handles ALL: linting, formatting, type checking, import sorting
# We do NOT use: mypy, black, flake8, isort
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["sqlalchemy.orm.DeclarativeBase"]
[tool.coverage.run]
source = ["src"]
omit = [
"src/__init__.py",
"src/local_dev/*",
"tests/*",
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
".venv/*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
skip_covered = false
sort = "Cover"
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"