-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
132 lines (115 loc) · 3.39 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
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "nio-bot"
description = "Making matrix bots simple"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.9,<3.13"
license = { text = "GNU LGPLv3" }
authors = [
{name = "Nexus", email = "[email protected]"}
]
dynamic = ["version", "dependencies"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Communications",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Utilities"
]
[project.urls]
Source = "https://github.com/nexy7574/nio-bot"
Tracker = "https://github.com/nexy7574/nio-bot/issues"
Documentation = "https://docs.nio-bot.dev/stable"
"Matrix Room" = "https://nio-bot.dev/support"
Funding = "https://ko-fi.com/nexy7574"
Homepage = "https://nio-bot.dev"
Changelog = "https://docs.nio-bot.dev/stable/changelog"
[project.optional-dependencies]
e2ee = ["python-olm", "peewee", "cachetools", "atomicwrites"]
# Alias e2e
e2e = ["python-olm", "peewee", "cachetools", "atomicwrites"]
cli = ['httpx>=0.25', 'click>=8.1.7', 'psutil>=5.9.6', "packaging>=23.1"]
dev = [
'mkdocs',
'mkdocs-material',
'black',
'mkdocs-autorefs',
'mkdocs-glightbox',
'mkdocstrings[python]',
'mkdocs-git-revision-date-localized-plugin',
'isort',
'build',
'pep440',
'pycodestyle',
'pytest',
'pytest-asyncio',
'pytest-benchmark',
'pytest-dependency',
'ruff',
'mike'
]
[project.scripts]
niocli = "niobot.__main__:cli_root [cli]"
[tool.setuptools_scm]
write_to = "src/niobot/__version__.py"
[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
[tool.black]
line-length = 120
target-versions = ["py39", "py310", "py311", "py312"]
include = 'src/niobot(/utils)?/.+\.py'
[tool.isort]
profile = "black"
src_paths = ["src/niobot"]
[tool.pytest.ini_options]
testpaths = [
"src",
]
filterwarnings = [
'ignore::DeprecationWarning:nio.*',
'ignore::DeprecationWarning:future.*',
# These warnings seem to be raised from matrix-nio, which we can't really fix via this project.
]
[tool.ruff]
# Replacement for isort & black
exclude = [".git"]
target-version = "py39"
line-length = 120
indent-width = 4
respect-gitignore = true
[tool.ruff.lint]
fixable = ["ALL"]
ignore = ["F403", "F405"]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I001", # isort
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
detect-same-package = true
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
max-line-length = 120