-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
144 lines (130 loc) · 3.42 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "ninette"
authors = [
{ name = "Enrico Tröger", email = "[email protected]" },
]
description = "A simple alerting system to get notified about important events or breaking news."
readme = "README.md"
license = { text="MIT" }
keywords = [
"mowas",
"dwd",
"nina",
"warning",
"alerting",
]
classifiers = [
"Environment :: No Input/Output (Daemon)",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Communications",
]
requires-python = ">=3.8"
dependencies = [
"html2text",
"py-staticmaps",
"requests",
]
dynamic = ["version"]
[project.scripts]
ninette = "ninette.cli:main"
[project.urls]
"Homepage" = "https://github.com/eht16/ninette"
"Bug Tracker" = "https://github.com/eht16/ninette/issues"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "ninette.__version__"}
###
### Ruff
###
[tool.ruff]
line-length = 100
exclude = [
".eggs",
".git",
".ruff_cache",
".tox",
"__pypackages__",
"_build",
"venv",
"migrations"
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments,
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme,
"FLY", # flynt,
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PERF", # Perflint,
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib,
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TD", # flake8-todos,
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020,
]
ignore = [
#'FBT002', # Boolean default value in function definition
'BLE001', # Do not catch blind exception: `Exception
'RET504', # Unnecessary variable assignment before `return` statement
'SIM108', # Combine `if` branches using logical `or` operator
'SIM114', # Combine `if` branches using logical `or` operator
'PERF203', # `try`-`except` within a loop incurs performance overhead
'TRY400', # Use `logging.exception` instead of `logging.error`
]
fixable = ["I", "Q000"]
unfixable = []
[tool.ruff.lint.isort]
lines-after-imports = 2
case-sensitive = true
length-sort = false
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.lint.pylint]
allow-magic-value-types = ["bytes", "int", "str"]
max-args = 7