-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (91 loc) · 2.13 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (91 loc) · 2.13 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "twitchbot"
version = "0.1.0"
description = "Twitch chat bot with location and SayIntentions integration"
authors = [{ name = "Joel Stanner" }]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.13"
dependencies = [
# Using twitchAPI 4.5 for Helix, EventSub & Chat
"twitchAPI>=4.5,<5",
"httpx>=0.27.0",
"python-dotenv>=1.0.1",
"pysimconnect>=0.2.6",
"pydantic-settings>=2.3",
"fastapi[standard]>=0.111.0",
"simpleobsws>=1.4.3",
]
[tool.setuptools]
packages = ["twitchbot"]
[project.optional-dependencies]
dev = [
"fastapi[standard]>=0.111.0",
"uvicorn>=0.30.0",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=6.0",
"black>=24.4",
"isort>=5.13",
"mypy>=1.10",
# optional: fast linter
"ruff>=0.5",
]
[tool.pytest.ini_options]
addopts = "-q --cov=twitchbot --cov-report=term-missing"
testpaths = ["tests"]
asyncio_mode = "strict"
norecursedirs = [
"dist",
"old_tests",
]
[tool.coverage.run]
branch = true
source = ["twitchbot"]
[tool.coverage.report]
show_missing = true
skip_empty = true
[tool.black]
line-length = 88
target-version = ["py312"]
extend-exclude = "^(build|dist)/"
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["twitchbot"]
skip = ["build", "dist"]
[tool.mypy]
python_version = "3.13"
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
no_implicit_optional = true
strict_optional = true
disallow_untyped_defs = true
check_untyped_defs = true
pretty = true
show_column_numbers = true
show_error_codes = true
exclude = '^(build|dist)/'
# allow tests to be lighter on typing
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = false
# third-party libs without type hints
[[tool.mypy.overrides]]
module = [
"simconnect.*",
"twitchio.*",
]
ignore_missing_imports = true
# optional: Ruff config (if you install ruff)
[tool.ruff]
line-length = 88
target-version = "py312"
exclude = ["build", "dist"]
lint.select = ["E", "F", "I"] # pycodestyle, pyflakes, isort import rules
lint.ignore = []