-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (85 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (85 loc) · 1.71 KB
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
[project]
name = "suggestions-sdk"
description = "Interact with the Suggestions Bot API."
authors = [{ name = "Skelmis", email = "skelmis.craft@gmail.com" }]
version = "0.1.0"
requires-python = ">=3.13"
readme = "README.md"
license = "MIT"
dependencies = [
"arrow>=1.4.0",
"httpx>=0.28.1",
"httpx-retries>=0.6.0",
"pydantic>=2.13.4",
"skelmis-commons>=1.6.1",
]
[dependency-groups]
dev = [
"black>=26.5.1",
"ruff>=0.16.4",
]
[project.urls]
Homepage = "https://github.com/suggestionsbot/python-sdk"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = ["suggestions"]
[tool.hatch.build.targets.wheel]
include = ["suggestions"]
[tool.ruff]
line-length = 90
target-version = "py312"
exclude = [
'bot/piccolo_migrations',
'shared/piccolo_migrations',
'web/piccolo_migrations',
'.venv',
'bot/locales/convert.py'
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# No Isort, we have some weird imports
"I001",
# We don't require public docstrings
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
'D404',
'D203',
'D213',
# imperative first line
'D401',
# local imports exist cos imports are pretty meh
'PLC0415',
# TO-DO's are fine
'TD',
'FIX002',
# We handle exception logging ourselves
'TRY400',
# private access
'SLF001',
# bool positionals
'FBT001',
'FBT002',
# black conflict
'COM812',
# asserts
'S101',
# commented out code
'ERA001',
]
[tool.ruff.lint.pylint]
max-args = 10
max-returns = 10
[tool.black]
line-length = 90
target-version = ["py312"]
[tool.isort]
profile = "black"