-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 2.66 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (95 loc) · 2.66 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
[project]
name = "sds"
version = "2.6.1"
description = "Supplementary Data Service"
requires-python = ">=3.13,<3.14"
dependencies = [
"fastapi==0.118.0",
"uvicorn===0.37.0",
"gunicorn==23.0.0",
"pytest==8.4.2",
"pydantic_settings==2.13.1",
"python-dotenv==1.1.1",
"httpx==0.28.1",
"firebase_admin==7.3.0",
"jsonschema==4.25.1",
"coverage==7.10.7",
"pytest-cov==7.0.0",
"pytest-order==1.3.0",
"functions-framework==3.9.2",
"google-cloud-firestore==2.21.0",
"google-cloud-pubsub==2.36.0",
"google-cloud-scheduler==2.16.1",
"pip_audit==2.10.0",
"pyyaml==6.0.3",
"ruff==0.13.2",
"setuptools==80.9.0",
"tomlkit==0.13.3",
"mock-firestore>=0.11.0",
"sds-common==1.0.36",
]
[[tool.uv.index]]
name = "sds-repo"
url = "https://europe-west2-python.pkg.dev/ons-sds-ci/sds-python-packages/simple/"
[tool.uv.sources]
sds-common = { index = "sds-repo" }
[dependency-groups]
version-check = [
"toml>=0.10.2",
"tomlkit>=0.13.3",
]
[tool.ruff]
line-length = 120
indent-width = 4
exclude = ["integration_tests", "unit_tests", "test_data"]
[tool.ruff.lint]
select = [
# Enabling ALL is not recommended it will implicitly enable new rules after upgrade.
# "ALL",
# Ruff rules: https://docs.astral.sh/ruff/rules/
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # flake8-comprehensions
"S", # flake8-bandit
#"D", # pydocstyle - Enforce existing docstrings only
"C90", # mccabe
"RUF", # Ruff specific rules
# PL - Pylint is only partially supported, we also use the pylint tool to catch all the rules.
# It is enabled here to take advantage of the ruff's speed.
"PL",
]
ignore = [
# Conflicts with google docstring style
"D205",
# Allow missing docstring, remove to enforce docstrings across the board
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# Disable line length check as it is handled by black
# :TODO: Remove E501 when ruff supports all black rules
"E501",
# indentation contains tabs
"W191",
# SDS SPECIFIC BELOW THIS LINE
# Function call as default argument
# "B008",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
# Whitelisted default arguments
"fastapi.Depends",
"fastapi.Body",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
# Allow use of assert statements in tests
"S101",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"