-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (75 loc) · 1.75 KB
/
pyproject.toml
File metadata and controls
96 lines (75 loc) · 1.75 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
[project]
name = "debt_overview"
version = "0.1.0"
description = "Sovereign debt overview page"
authors = [
{ name = "Luca Picci", email = "lpicci96@gmail.com" }
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"bblocks-data-importers>=0.5.0",
"bblocks-places>=0.0.4",
"black>=25.12.0",
"notebook>=7.4.7",
"pydeflate>=2.3.3",
"unesco-reader>=3.0.0",
]
[dependency-groups]
dev = [
"mypy>=1.8.0",
"ruff>=0.3.0",
]
[tool.ruff]
line-length = 88
target-version = "py312"
exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
"*.egg-info",
".pytest_cache",
"htmlcov",
]
[tool.ruff.lint]
select = [
"E", "W", "F", # pycodestyle, pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # bugbear
"C4", # comprehensions
"SIM", # simplify
"PL", # pylint
"RUF", # ruff-specific
"ERA", # commented code
"PERF", # performance
]
ignore = [
"E501", # Line length (formatter handles)
"PLR0913", # Too many arguments
"PLR2004", # Magic values
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Use spaces for indentation
indent-style = "space"
# Like Black, respect magic trailing commas
skip-magic-trailing-comma = false
# Like Black, automatically detect line endings
line-ending = "auto"
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
files = ["scripts/"]