-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (95 loc) · 2.15 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
# Exclude the coverage report file from setuptools package finder
exclude = ["htmlcov"]
[project]
name = "Paricia"
version = "1.1.0"
authors = [
{ name = "Imperial College London RSE Team", email = "ict-rse-team@imperial.ac.uk" },
]
requires-python = ">=3.11"
dependencies = [
"asgiref",
"Django",
"django-bootstrap5",
"django-crispy-forms",
"django-excel-response",
"django-extensions",
"django-filter",
"django-timescaledb",
"djangorestframework",
"djangorestframework-simplejwt",
"drf-yasg",
"idna",
"jdcal",
"numpy",
"pandas",
"psycopg2",
"pytz",
"PyYAML",
"uritemplate",
"crispy-bootstrap5",
"django-plotly-dash",
"dash-ag-grid",
"django-guardian",
"whitenoise",
"huey",
"pycountry",
"Pillow",
"django-tables2",
]
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"pip-tools",
"pre-commit",
"model_bakery",
"tqdm",
"djlint",
]
doc = [
"mkdocs",
"mkdocstrings",
"mkdocstrings-python>=1.11",
"mkdocs-material",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"markdown-include",
"mkdocs-glightbox",
"mkdocs-caption",
]
[tool.mypy] # TODO: increase the strictness here
# disallow_any_explicit = true
# disallow_any_generics = true
warn_unreachable = true
warn_unused_ignores = true
# disallow_untyped_defs = true
explicit_package_bases = true
[tool.ruff]
exclude = ["*/migrations"]
target-version = "py311"
[tool.ruff.lint]
select = [
# "D", # pydocstyle - TODO: enable this when working on the documentation
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"RUF", # ruff
]
ignore = ["RUF012"] # Typing on mutable class attributes
pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
]
[tool.djlint]
profile="django"
indent=2