forked from srehwald/eat-api
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpyproject.toml
83 lines (74 loc) · 2.5 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
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
[project]
name = "eat-api"
version = "0.1.0"
description = "Simple API for some (student) food places in Munich."
authors = [{ name = "TUM-Dev" }]
license = "MIT"
readme = "README.md"
requires-python = ">= 3.9"
dependencies = [
"lxml~=5.3",
"pyopenmensa~=0.95",
"requests~=2.32",
"deepl>=1.2.1",
]
[dependency-groups]
dev = [
"mypy~=1.14",
"pre-commit~=4.1",
"pylint~=3.3",
"pytest~=8.3",
"types-requests~=2.32",
]
[project.urls]
homepage = "https://eat-api.tum.sexy/"
repository = "https://github.com/TUM-Dev/eat-api"
issues = "https://github.com/TUM-Dev/eat-api/issues"
documentation = "https://tum-dev.github.io/eat-api/docs/"
[tool.poetry]
package-mode = false
# needed for poetry's locking
[tool.poetry.dependencies]
python = ">= 3.9,<4"
[tool.mypy]
ignore_missing_imports = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
no_implicit_reexport = true
strict_equality = true
pretty = true
[tool.pylint.master]
jobs = 1
[tool.pylint.message_control]
disable = [
"missing-function-docstring", # too much work
"missing-module-docstring", # too much work
"missing-class-docstring", # too much work
"line-too-long", # we have another hook for this
"wrong-import-position", # we have another hook for this
"no-member", # mypy does this job with less false positives
"no-else-return", # depending on dev this is an antipattern.. not touching this debate
"no-else-continue", # depending on dev this is an antipattern.. not touching this debate
"no-else-break", # depending on dev this is an antipattern.. not touching this debate
"invalid-name", # possible api-change.. DONT
"fixme", # prevents users from committing things with a TODO in comments. Having more frequent commits is desirable
"pointless-string-statement", # those care "comments"
"too-many-locals", # TODO code quality
"too-many-statements", # TODO code quality
"too-many-branches", # TODO code quality
"too-few-public-methods", #TODO code quality
"too-many-arguments",
"unsubscriptable-object",
"consider-using-dict-items",
"import-error", # produces weird PYTHONPATH issues. WONTFIX until pylint/pre-commit allows setting environment options.
# to run this locally remove this line temporarily and call
# `PYTHONPATH=./src pre-commit run -a` and `PYTHONPATH=./scripts pre-commit run -a`
]
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
line_length = 120