-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
83 lines (73 loc) · 1.6 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 = "synapse_limit_user_directory"
description = "Limit user directory search result to those set their profile to public or they shared a private room"
readme = "README.md"
version = "0.0.1"
requires-python = ">=3.8,<3.13"
classifiers = [
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"attrs"
]
[project.optional-dependencies]
dev = [
# for tests
"matrix-synapse == 1.123.0",
"tox",
"twisted == 24.7.0",
"aiounittest",
# for type checking
"mypy == 1.6.1",
# for linting
"black == 23.10.0",
"ruff == 0.1.1",
]
[build-system]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.mypy]
files = ["synapse_limit_user_directory", "tests"]
disable_error_code = ["import-untyped", "no-untyped-call", "attr-defined"]
strict = false
[tool.ruff]
line-length = 80
# 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",
]