-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (102 loc) · 3.37 KB
/
pyproject.toml
File metadata and controls
110 lines (102 loc) · 3.37 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
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "fastapi-elk"
version = "0.1.0"
description = "fastapi-elk"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"elastic-apm>=6.23.0",
"fastapi[standard]>=0.115.11",
"gunicorn==21.2.0",
"orjson==3.9.14",
"phonenumbers==8.13.37",
"pydantic-extra-types==2.7.0",
"pydantic-settings==2.2.1",
"python-dotenv==1.0.1",
"redis==5.0.1",
"uvicorn==0.27.1",
]
[dependency-groups]
dev = [
"aiohttp>=3.11.13",
"coverage>=7.6.12",
"faker>=36.1.1",
"pre-commit>=4.1.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"ruff>=0.9.9",
"testcontainers>=4.9.1",
]
# https://docs.astral.sh/ruff/configuration/
# https://docs.astral.sh/ruff/settings/
[tool.ruff]
target-version = "py311"
extend-exclude = []
line-length = 88
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
exclude = [
]
select = [
# RULES: https://docs.astral.sh/ruff/rules/
"A", # flake8-builtins
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"G", # flake8-logging-format
"F", # pyflakes
"I", # isort
"N", # PEP8 naming
"S", # flake8-bandit
"W", # pycodestyle warnings
"T20", # flake8-print
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"UP", # pyupgrade
"PL", # Pylint
"PT", # flake8-pytest-style
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"ARG", # flake8-unused-arguments
"COM", # flake8-commas
"FBT", # flake8-boolean-trap
"LOG", # flake8-logging
"SIM", # flake8-simplify
"TRY", # tryceratops
"PIE", # flake8-pie
"RUF", # Ruff-specific rules
"ASYNC", # flake8-async
]
ignore = [
"E501", # Line too long
"SIM108", # Use ternary operator
"SIM110", # Use return all instead of for-cycle
"TRY300", # Consider moving any statement to an `else` block instead of try
"TRY002", # Create your own exception
"TRY301", # Abstract `raise` to an inner function
"RUF001", # Docstring contains ambiguous some CYRILLIC LETTER
"RUF002", # Docstring contains ambiguous some CYRILLIC LETTER
"RUF003", # Docstring contains ambiguous some CYRILLIC LETTER
"N805", # First argument of a method should be named `self`
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison, consider replacing x with a constant variable
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"ASYNC109", # Async function definition with a `timeout` parameter
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
"B008", # Do not perform function call in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
"G004", # Logging statement uses f-string
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**.py" = ["S101", "PLR2004", "S105", "S106", "FBT001"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["app"]
asyncio_default_fixture_loop_scope = "function"
filterwarnings = "ignore::DeprecationWarning"
[tool.coverage.run]
omit = [
"tests/*",
]