-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
58 lines (52 loc) · 1.33 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
[tool.poetry]
name = "apollo-settings"
version = "0.2.1"
description = "Apollo Config & Pydantic Settings"
authors = ["wangyuxin <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "apollo_settings" }]
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.0.0"
pydantic = "^2.0.0"
pydantic-settings = "^2.0.0"
[tool.ruff]
line-length = 78
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"N",
"A",
"T",
"PT",
"RET",
"TRY",
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # zip strict
"C901", # too complex
"A003", # shadow builtin
"ANN1", # self and cls
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in
"TRY003", # Avoid specifying long messages outside the exception class
"PLC0414", # reimport
]
exclude = ["playground", "api_docs"]
target-version = "py38"
[tool.ruff.format]
quote-style = "single"
[tool.pyright]
reportMissingTypeStubs = false
[tool.poetry.group.dev.dependencies]
pyright = "^1.1.310"
ruff = "^0.1.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"