-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
110 lines (101 loc) · 2.63 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
[tool.poetry]
name = "fastapi-gcp-tasks"
version = "0.1.1"
description = "Trigger delayed Cloud Tasks from FastAPI"
readme = "README.md"
license = "MIT"
authors = ["Team Simplify <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.11, <3.14"
google-cloud-tasks = ">=2.16.3, <2.20.0"
google-cloud-scheduler = ">=2.13.3, <2.20.0"
fastapi = ">=0.110.0, <0.120.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.7.0"
uvicorn = "^0.32.0"
mypy = "^1.10.0"
types-ujson = "^5.10.0.20240515"
types-protobuf = "^5.26.0.20240422"
[tool.mypy]
plugins = ["pydantic.mypy"]
ignore_missing_imports = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 120
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"N", # pep8-naming
"I", # isort
"C", # flake8-comprehensions
"D", # pydocstyle
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"T100", # flake8-debugger
"PT", # flake8-pytest
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"D104", # missing docstring in public package
"D107", # missing docstring in __init__
"D202", # no blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D212", # multi-line docstring summary should start at the first line
"D401", # first line of docstring should be in imperative mood
"D404", # first word of the docstring should not be "This"
"D100", # missing docstring in public module
"N805", # first argument of a method should be named self
]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["D103"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[build-system]
requires = ["poetry-core>=1.8.2"]
build-backend = "poetry.core.masonry.api"