forked from matrix-nio/matrix-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
123 lines (112 loc) · 2.7 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "matrix-nio"
version = "0.25.0rc3"
description = "A Python Matrix client library, designed according to sans I/O principles."
authors = [
"Damir Jelić <[email protected]>",
"Paarth Shah <[email protected]>"
]
license = "ISC"
readme = "README.md"
repository = "https://github.com/poljar/matrix-nio"
documentation = "https://matrix-nio.readthedocs.io/en/latest/"
packages = [
{include = "nio"}
]
[tool.poetry.dependencies]
python = "^3.8.0"
aiohttp = "^3.9.0"
aiofiles = "^23.1.0"
h11 = "^0.14.0"
h2 = "^4.0.0"
jsonschema = "^4.14.0"
unpaddedbase64 = "^2.1.0"
pycryptodome = "^3.10.1"
python-olm = { version = "^3.2.16", optional = true }
peewee = { version = "^3.14.4", optional = true }
cachetools = { version = "^5.3.3", optional = true }
atomicwrites = { version = "^1.4.0", optional = true }
aiohttp-socks = "^0.8.4"
[tool.poetry.extras]
e2e = ["python-olm", "peewee", "cachetools", "atomicwrites"]
[tool.poetry.dev-dependencies]
pytest = "^8.2.0"
pytest-asyncio = "^0.23.6"
pytest-cov = "^2.11.1"
hyperframe = "^6.0.0"
hypothesis = "^6.8.9"
hpack = "^4.0.0"
faker = "^8.0.0"
mypy = "^0.812"
pytest-aiohttp = "^0.3.0"
types-peewee = "^3.16.0.2"
aioresponses = "^0.7.4"
pytest-benchmark = "^3.2.3"
ruff = "^0.4.2"
[tool.ruff]
# Assume Python 3.8.
target-version = "py38"
fix = true
show-fixes = true
preview = true
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I001", # isort
"UP", # pyupgrade
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"FA", # flake8-future-annotations
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"PERF", # Perflint
"FURB", # refurb
]
ignore = [
"E501", # https://www.flake8rules.com/rules/E501.html - Let `black` handle this.
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"venv*",
]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
# Needed for python < 3.10, should be removed afterward.
keep-runtime-typing = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
"I001",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false