-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpyproject.toml
51 lines (44 loc) · 1.32 KB
/
pyproject.toml
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
[tool.poetry]
name = "spond"
version = "1.1.1"
description = "Simple, unofficial library with some example scripts to access data from the Spond API."
authors = ["Ola Thoresen <ola@nytt.no>"]
license = "GPL 3.0"
readme = 'README.md'
repository = 'https://github.com/Olen/Spond'
[tool.poetry.dependencies]
python = "^3.9"
aiohttp = "^3.8.5"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
pytest-asyncio = ">=0.23.6,<0.26.0"
ruff = "^0.9.6"
[tool.ruff]
target-version = "py39" # Ruff doesn't yet infer this from [tool.poetry.dependencies]
[tool.ruff.lint]
select = [
"ANN201", # Missing return type annotation for public function
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"SIM", # flake8-simplify
"UP", # pyupgrade
]
ignore = [
"E501", # Line too long: needs code refactors first
]
[tool.ruff.lint.per-file-ignores]
# In example files:
# - Don't try to sort imports as non-existent `config` module causes issues in CI
# - Don't enforce type annotations for now
"attendance.py" = ["ANN", "I001"]
"groups.py" = ["ANN", "I001"]
"ical.py" = ["ANN", "I001"]
"manual_test_functions.py" = ["I001"]
"transactions.py" = ["ANN", "I001"]
# In tests:
# - Don't enforce type annotations for now
"**/{tests}/*" = ["ANN"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"