-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
140 lines (128 loc) · 2.62 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
[project]
name = "laniakea"
description = "Suite of tools to manage a Debian-based Linux distribution."
authors = [
{name = "Matthias Klumpp", email = "[email protected]"},
]
license = {text="LGPL-3.0-or-later"}
readme = "README.md"
requires-python = ">=3.9"
[project.urls]
Documentation = "https://github.com/lkhq/laniakea"
Source = "https://github.com/lkhq/laniakea"
[build-system]
requires = ["meson"]
[tool.laniakea.dependencies]
base = [
'SQLAlchemy>=1.4,<2.0',
'alembic',
'psycopg2>=2.7.7',
'python-debian',
'python-apt>=2.2.1',
'pyzmq',
'Pebble>=4.6',
'requests',
'PyYAML>=5.3.1',
'tomlkit>=0.8',
'APScheduler',
'firehose',
'humanize',
'marshmallow>=3.18',
'tornado',
'PyGObject',
'PyNaCl',
'systemd-python',
'click>=7.1',
'rich>=12.4',
'voluptuous',
'setproctitle',
'gir:AppStream~=1.0',
]
web = [
'Flask',
'Flask-Caching>=2.0',
'Flask-Login',
'flask-rebar',
]
matrix = [
'mautrix>=0.8.18',
]
tests = [
'pytest',
'pytest-flask',
'mypy',
'flake8',
'pylint',
'pylint-flask',
'pylint-sqlalchemy',
'isort',
'black',
]
docs = [
'Sphinx>=3.4',
'Pygments>=2.6',
'sphinx-autodoc-typehints',
'piccolo-theme>=0.14',
]
[tool.pylint.master]
init-hook='''import os
import sys
from glob import glob
for p in glob("./src/*"):
if p == 'laniakea':
continue
if os.path.isdir(p):
sys.path.append(p)'''
extension-pkg-whitelist = ['apt_pkg']
[tool.pylint.format]
max-line-length = 140
[tool.pylint."messages control"]
disable = [
'C', 'R',
'fixme',
'unused-argument',
'global-statement',
'logging-format-interpolation',
'attribute-defined-outside-init',
'protected-access',
'comparison-with-callable', # https://github.com/PyCQA/pylint/issues/2757
'broad-except',
'redefined-builtin',
# Fix these:
'raise-missing-from',
'redefined-outer-name',
'unused-variable',
'unspecified-encoding',
'broad-exception-raised',
]
[tool.pylint.reports]
score = 'no'
[tool.pylint.typecheck]
ignored-modules = [
'alembic.op',
'alembic.context',
'zmq',
'mautrix.types'
]
[tool.pytest.ini_options]
addopts = "-x"
minversion = "6.0"
log_cli = true
log_level = "INFO"
log_format = "%(asctime)s - %(levelname)s: %(message)s"
log_date_format = "%H:%M:%S"
testpaths = [
"tests",
]
[tool.isort]
py_version = 39
profile = "black"
multi_line_output = 3
skip_gitignore = true
length_sort = true
atomic = true
skip_glob = ["tests/test_data/*"]
[tool.black]
target-version = ['py39']
line-length = 120
skip-string-normalization = true