-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
101 lines (86 loc) · 1.86 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
[project]
name = "synapse_super_invites"
description = "Provides extended support for users to invite other users to rooms via an inventation token"
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"matrix-synapse",
"sqlalchemy",
"alembic",
"attrs"
]
[project.optional-dependencies]
dev = [
# for tests
"tox",
"twisted",
"matrix_synapse_testutils",
# for type checking
"mypy == 1.6.1",
# for linting
"black == 23.10.0",
"ruff == 0.1.1",
# for publishing
"build",
"twine"
]
[project.urls]
Homepage = "https://www.acter.global/"
Repository = "https://github.com/acterglobal/synapse-super-invites/"
[build-system]
requires = [
"setuptools",
"wheel",
"setuptools_scm",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.setuptools.dynamic]
version = {attr = "synapse_super_invites.__version__"}
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = ["attr-defined", "index", "union-attr"]
[tool.ruff]
line-length = 88
# See https://docs.astral.sh/ruff/rules/#error-e
# for error codes. The ones we ignore are:
# E501: Line too long (black enforces this for us)
# E731: do not assign a lambda expression, use a def
#
# flake8-bugbear compatible checks. Its error codes are described at
# https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
# B023: Functions defined inside a loop must not use variables redefined in the loop
ignore = [
"B023",
"E501",
"E731",
]
select = [
# pycodestyle
"E",
"W",
# pyflakes
"F",
# flake8-bugbear
"B0",
# flake8-comprehensions
"C4",
# flake8-2020
"YTT",
# flake8-slots
"SLOT",
# flake8-debugger
"T10",
# flake8-pie
"PIE",
# flake8-executable
"EXE",
# isort
"I",
]