forked from shapiromatron/hawc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
158 lines (148 loc) · 3.27 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[project]
name = "hawc"
license = {file = "LICENSE"}
authors = [{name = "Andy Shapiro", email = "[email protected]"}]
readme = "README.rst"
dynamic = ["version", "description"]
keywords = [
"data visualization",
"epidemiology",
"risk assessment",
"systematic review",
"toxicology",
]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12"
dependencies = [
# web application
"Django~=5.0.7",
"django-crispy-forms==2.2",
"crispy-bootstrap4==2024.1",
"django-filter==24.2",
"django-redis==5.4.0",
"django-reversion==5.0.12",
"django-autocomplete-light==3.11.0",
"django-taggit==5.0.1",
"django-treebeard==4.7.1",
"djangorestframework==3.15.2",
"django-webpack-loader==3.1.0",
"uritemplate==4.1.1",
"inflection==0.5.1",
"pyyaml==6.0.1",
"gunicorn==22.0.0",
"wagtail~=6.1.3",
"wagtail-draftail-anchors==0.6.0",
# tasks
"celery==5.4.0",
"billiard==4.2.0",
"kombu==5.3.7",
# utilities
"jsonschema==4.22.0",
"lxml==5.2.2",
"psycopg2-binary==2.9.9",
"redis==5.0.6",
"requests==2.32.3",
"pydantic==2.7.4",
"nh3==0.2.17",
"tinycss2==1.3.0",
# computational
"numpy==1.26.4",
"pandas==2.2.2",
"openpyxl==3.1.4",
"jinja2==3.1.4",
"plotly==5.22.0",
"scipy==1.13.1",
"bmds==23.4",
# exports
"rispy==0.9.0",
"python-docx==1.1.2",
]
[project.optional-dependencies]
dev = [
# build
"flit==3.9.0",
# lint and formatting tools
"ruff==0.4.9",
"djhtml==3.0.6",
"pre-commit==3.7.1",
# django development
"django-debug-toolbar==4.4.2",
"django-browser-reload==1.12.1",
"django-extensions==3.2.3",
"faker==25.8.0",
# tests
"coverage==7.5.3",
"pytest==8.2.2",
"pytest-django==4.8.0",
"vcrpy==6.0.1",
"pytest-recording==0.13.1",
"playwright==1.44.0",
"pytest-playwright==0.5.0",
]
docs = [
"mkdocs-material==9.5.27",
]
prod = [
"django-anymail==10.3",
"sentry_sdk==2.5.1",
]
[project.scripts]
manage = "hawc:manage"
"manage.py" = "hawc:manage"
[project.urls]
Documentation = "https://hawc.readthedocs.io/"
Source = "https://github.com/shapiromatron/hawc"
[build-system]
requires = ["flit_core ~=3.9"]
build-backend = "flit_core.buildapi"
[tool.coverage.run]
omit = [
"*migrations*",
"./build/",
"./client/hawc_client/interactive.py",
"./hawc/apps/*/management/*",
"./hawc/main/*",
"./scripts/private/*",
"./tests/*",
"./venv/*",
]
[tool.flit.sdist]
include = [
"hawc/static/bundles/**/*",
"hawc/gitcommit.json",
"hawc/webpack-stats.json",
]
exclude = [
".github",
"bin",
"client",
"compose",
"docs",
"frontend",
"scripts",
"tests",
"vendor",
]
[tool.ruff]
line-length = 100
target-version = "py311"
lint.select = ["F", "E", "W", "I", "UP", "S", "B", "T20", "RUF"]
lint.ignore = ["E501", "B904", "B007", "S308", "S113", "S314", "S603", "S607", "RUF012", "RUF015"]
lint.unfixable = ["F401", "F841"]
[tool.ruff.lint.isort]
known-first-party = ["hawc", "hawc_client"]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["S101", "S106"]
"scripts/*.py" = ["T201"]
"**/management/**.py" = ["T201"]
"**/migrations/**.py" = ["T201"]
[tool.pytest.ini_options]
addopts = "--ds=hawc.main.settings.unittest --record-mode=once --reuse-db --nomigrations"
testpaths = [
"tests/hawc",
"tests/integration",
"tests/client",
]