forked from element-hq/synapse-room-access-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (72 loc) · 1.54 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
[project]
name = "room_access_rules"
description = "Custom room access rules for Tchap."
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"attrs"
]
[project.optional-dependencies]
dev = [
# for tests
"pydantic >= 1.7.4, < 2.0",
"matrix-synapse == 1.103.0",
"tox",
"twisted",
"aiounittest",
# for type checking
"mypy == 1.6.1",
# for linting
"black == 23.10.0",
"ruff == 0.1.1",
]
[project.urls]
repository = "https://github.com/tchapgouv/synapse-room-access-rules"
[build-system]
requires = ["setuptools", "setuptools_scm", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.mypy]
strict = true
[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",
]