-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
92 lines (85 loc) · 2 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "sdk"
authors = [
{ name = "Gram", email = "git@orsinium.dev" },
{ name = "VadimPushtaev", email = "pushtaev.vm@gmail.com" },
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version", "description"]
classifiers = ["Private :: Do Not Upload"]
dependencies = [
"ipython", # for running IPython code snippets
"jinja2", # for rendering html pages
"jsonschema", # for validating posts' metadata
"markdown-it-py", # for parsing posts' markdown content
"pyyaml", # for parsing posts' metadata
"requests", # for fetching PEPs
"rfeed", # for generating rss feed
"telethon", # for scheduling telegram posts
# for running code examples
"aiotask-context",
"pytz",
"simplejson",
]
[project.optional-dependencies]
test = [
"pytest", # test framework
"pytest-cov", # for generating coverage report
]
lint = [
"flake8",
"isort",
"mypy",
"ruff",
"types-jsonschema",
"types-pyyaml",
"types-requests",
"unify",
]
[tool.mypy]
files = ["sdk", "tests"]
python_version = "3.11"
show_error_codes = true
ignore_missing_imports = true
follow_imports = "silent"
check_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.isort]
profile = "django"
lines_after_imports = 2
skip = [".venvs/", "venv", "repls/"]
[tool.ruff]
line-length = 90
select = [
"B",
"COM",
"E",
"F",
"ISC",
"N",
"PIE",
"PL",
"PTH",
"Q",
"RUF",
"SIM",
"W",
]
exclude = ["repls"]
ignore = [
"PLR2004", # allow hardcoded constants
"PLR0913", # allow multiple arguments for a function
"B904", # allow raising exceptions without `from`
"PLW2901", # allow shadowing loop variables
]
target-version = "py311"
[tool.ruff.flake8-quotes]
inline-quotes = "single"