-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (93 loc) · 2.97 KB
/
pyproject.toml
File metadata and controls
102 lines (93 loc) · 2.97 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
[project]
name = "nexar"
version = "1.1.0"
description = "A simple, Pythonic SDK for Riot's League of Legends API"
readme = "README.md"
authors = [
{ name = "bex", email = "30572280+JoshPaulie@users.noreply.github.com" },
]
requires-python = ">=3.13"
dependencies = [
"aiohttp>=3.12.13",
"aiohttp-client-cache[all,sqlite]>=0.13.0",
"aiolimiter>=1.2.1",
"aiosqlite>=0.21.0",
"pytest-mock>=3.14.1",
]
[dependency-groups]
dev = [
"aioresponses>=0.7.8",
"coverage>=7.13.3",
"mkdocs-material>=9.6.15",
"mkdocstrings[python]>=0.29.1",
"mypy>=1.16.1",
"pymdown-extensions>=10.16",
"pytest>=8.4.1",
"pytest-asyncio>=1.0.0",
"pytest-cov>=7.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "--cov=src/nexar --cov-report=term-missing --cov-report=html"
filterwarnings = [
"ignore:Cache access after closing the `Cachedsession` context manager:UserWarning",
]
[tool.coverage.run]
omit = ["tests/*", "examples/*"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"T201", # Allow print statements
"D107", # Ignore missing docstring in __init__
"PLR0913", # Ignore too many return statements
"D212", # Ignore dumb rule about docstrings and how they start
"D105", # Ignore missing docstring in magic methods
"D401", # Allow declarative docstrings
"DTZ006", # Ignore missing tz in datetime
"PLC0415", # Allow imports to be imported anywhere avoid circular imports
"TD003", # Allow issue-less todos
"FIX002", # Allow fixme comments
]
[tool.ruff.lint.per-file-ignores]
"examples/*.py" = [
"ERA001", # Allow commented out code in examples
"C901", # Allow long main functions in examples
"PLR2004", # Allow magic numbers in examples
"INP001", # Disable implicit namespace package error in examples
]
"tests/*.py" = [
"S101", # Allow assert statements in tests
"W293", # Blank line contains whitespace
"SLF001", # Allow private member access
"PLR2004", # Allow magic numbers in tests
]
"docs/snippets/*/*.py" = [
"S101", # Allow assert statements in snippets
"INP001", # Disable implicit namespace package error in snippets
"SLF001", # Allow private member access
"PLR2004", # Allow magic numbers in snippets
"D1", # Allow missing docstring in snippets
"I001", # Allow unorganized import order in snippets
"E402", # Allow module level import not at top of file in snippets
"F841", # Allow unused variable in snippets
"ERA001", # Allow commented out code in snippets
]
"playground*.py" = ["D1"]
[tool.ruff]
line-length = 120
[tool.mypy]
files = "src"
strict = true
python_version = "3.13"
mypy_path = "src"
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = ["method-assign"]