forked from Aquaveo/ngiab-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (63 loc) · 1.99 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
[project]
name = "tethysapp-ngiab"
dynamic = ["version"]
description = "An application for visualizaing Next gen model data."
authors = [{ name = "Giovanni Romero", email = "[email protected]" }]
dependencies = ["duckdb", "geopandas", "xarray", "netcdf4>=1.7.2", "numpy<2"]
requires-python = ">=3.10"
readme = "README.md"
license = { text = "" }
keywords = [""]
[tool.pdm]
[tool.pdm.dev-dependencies]
test = [
"pytest>=7.3.1",
"pytest-sugar>=0.9.7",
"pytest-cov>=4.0.0",
"pytest-django>=4.5.2",
"pytest-mock>=3.12.0",
"pytest-unordered>=0.5.2",
]
lint = ["flake8>=5.0.4", "yapf>=0.32.0"]
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
test.cmd = "pytest"
test.env_file = "tests/.env"
format = "yapf --in-place --recursive --verbose --exclude 'tethysapp/ngiab/workspaces/**/*.py' ."
format-check = "yapf --recursive --verbose --diff --exclude 'tethysapp/ngiab/workspaces/**/*.py' ."
lint = "flake8 --config .flake8 ."
all = { composite = ["format", "lint", "test"] }
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tethys_portal.settings"
addopts = "--cov"
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::UserWarning",
"ignore::sqlalchemy.exc.SAWarning",
]
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.paths]
source = ["tethysapp"]
[tool.coverage.run]
source = ["tethysapp"]
[tool.coverage.report]
show_missing = true
[tool.yapf]
based_on_style = "facebook"
column_limit = 120
[tool.yapfignore]
ignore_patterns = [".git", ".venv", "build", "dist", "node_modules"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["tethysapp*"]
[tool.setuptools.package-data]
"*" = ["*.js", "*.png", "*.gif", "*.jpg", "*.html", "*.css", "*.json", "*.svg"]
[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools-scm
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"