-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
executable file
·138 lines (120 loc) · 3.08 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
133
134
135
136
137
138
[tool.poetry]
name = "mystbin-py"
version = "7.0.2"
description = "A small simple wrapper around the mystb.in API."
authors = ["AbstractUmbra <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/PythonistaGuild/mystbin.py"
repository = "https://github.com/PythonistaGuild/mystbin.py"
keywords = ["mystbin", "paste"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet",
"Typing :: Typed",
]
include = ["LICENSE"]
packages = [
{ include = "mystbin" },
{ include = "mystbin/**/*.py" },
{ include = "mystbin/py.typed" },
]
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/PythonistaGuild/mystbin.py/issues"
[tool.poetry.dependencies]
python = "^3.8"
aiohttp = [
{ version = "^3.8" },
{ version = "^3.8", markers = "extra == 'speed'", extras = [
"speedups",
] },
]
sphinx = { version = "^4.0.0", optional = true }
sphinxcontrib-trio = { version = "*", optional = true }
furo = { version = "*", optional = true }
pytz = { version = "*", optional = true, python = "<3.9" }
[tool.poetry.extras]
speed = ["aiohttp"]
docs = ["sphinx", "sphinxcontrib-trio", "furo"]
[tool.poetry.group.speedups.dependencies]
aiohttp = { version = "^3.8", extras = ["speedups"] }
[tool.poetry.group.docs.dependencies]
sphinx = "*"
sphinxcontrib-trio = "*"
furo = "*"
[tool.poetry.group.dev.dependencies]
ruff = "*"
"typing-extensions" = "*"
[tool.poetry.scripts]
version = 'mystbin.__main__:show_version'
[tool.ruff]
line-length = 125
target-version = "py38"
[tool.ruff.lint]
exclude = ["docs/**/*.py"]
select = [
"C4",
"F",
"G",
"I",
"PTH",
"RUF",
"SIM",
"TCH",
"UP",
"W",
"PERF",
"ANN",
]
ignore = [
"F401",
"F402",
"F403",
"F405",
"PERF203",
"RUF001",
"RUF009",
"SIM105",
"UP034",
"UP038",
"ANN101",
"ANN102",
"ANN401",
]
[tool.ruff.lint.isort]
split-on-trailing-comma = true
combine-as-imports = true
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[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.pyright]
ignore = ["docs/conf.py"]
include = ["mystbin/**/*.py"]
useLibraryCodeForTypes = true
typeCheckingMode = "strict"
pythonVersion = "3.8"
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"