-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (109 loc) · 3.32 KB
/
pyproject.toml
File metadata and controls
115 lines (109 loc) · 3.32 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
111
112
113
114
115
[project]
name = "bank-system"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"anyio>=4.11.0",
"asyncpg>=0.30.0",
"asyncpg-stubs>=0.30.2",
"bcrypt>=4.2.1",
"fastapi>=0.121.3",
"loguru>=0.7.3",
"pydantic-settings>=2.12.0",
"uvicorn[standard]>=0.38.0",
]
[tool.ruff]
target-version = "py314"
src = [ "src" ]
fix = true
format.docstring-code-format = true
lint.select = [ "ALL" ]
lint.ignore = [
"ANN201", # Return type can be inferred. No need to do anything
"ANN202", # Return type can be inferred. No need to do anything
"ANN204", # Return type can be inferred. No need to do anything
"ANN205", # Return type can be inferred. No need to do anything
"ANN206", # Return type can be inferred. No need to do anything
"COM812", # Conflicts with formatter
"D105", # Magic methods are generally documented at the source
"D107", # Initializer docs are obvious much of the time
"FIX002", # TODO comments are used consistently
"ISC001", # Conflicts with formatter
"S101", # Asserts are used for type hinting
"S603", # Prone to false positive. Not that worth having
"TC006", # Don't care about using strings for casts
"TD003", # Not every TODO needs a link
"TRY003", # Alerts on common errors
]
lint.per-file-ignores."__init__.py" = [
"D", # No docs needed
]
lint.per-file-ignores."__main__.py" = [
"D", # No docs needed
]
lint.per-file-ignores."scripts/**/*.py" = [
"D", # No docs needed
]
lint.per-file-ignores."src/**/*.py" = [
"PT", # Don't need pytest checks in source code
]
lint.per-file-ignores."tests/**/conftest.py" = [
"D", # No docs needed
"INP001", # Tests don't care about implicit namespaces
]
lint.per-file-ignores."tests/**/test_*.py" = [
"D", # No docs needed
"INP001", # Tests don't care about implicit namespaces
]
lint.flake8-bugbear.extend-immutable-calls = [
"simple_parsing.field",
"simple_parsing.subgroups",
]
lint.flake8-builtins.ignorelist = [ "id", "hash" ]
lint.flake8-pytest-style.fixture-parentheses = false
lint.flake8-pytest-style.mark-parentheses = false
lint.pydocstyle.convention = "google"
lint.pydocstyle.ignore-decorators = [ "typing.overload", "typing.overrides" ]
lint.logger-objects = [ "loguru.logger" ]
[tool.pytest.ini_options]
addopts = [ "--import-mode=importlib", "--strict-markers" ]
filterwarnings = [ "error" ]
markers = [ ]
pythonpath = "src tests"
[tool.coverage.report]
exclude_also = [ "if TYPE_CHECKING:" ]
[tool.pyright]
exclude = [
".venv",
]
executionEnvironments = [
{ extraPaths = [
"src",
"tests",
], root = "tests" },
{ root = "src" },
]
pythonVersion = "3.14"
reportUnnecessaryTypeIgnoreComment = true
reportImplicitStringConcatenation = false
strict = [ "src/**", "tests/**" ]
[tool.sqlfluff.core]
dialect = "postgres"
[tool.sqlfluff.rules.capitalisation.keywords]
capitalisation_policy = "upper"
[tool.sqlfluff.rules.capitalisation.identifiers]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.functions]
extended_capitalisation_policy = "lower"
[tool.sqlfluff.rules.capitalisation.literals]
capitalisation_policy = "upper"
[tool.sqlfluff.rules.capitalisation.types]
extended_capitalisation_policy = "lower"
[dependency-groups]
test = [
"httpx>=0.28.1",
"pytest>=9.0.1",
"testing-postgresql>=1.3.0",
]