-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (92 loc) · 3.14 KB
/
pyproject.toml
File metadata and controls
100 lines (92 loc) · 3.14 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
[tool.poetry]
name = "pygem"
version = "1.1.0"
description = "Python Glacier Evolution Model (PyGEM)"
authors = ["David Rounce <drounce@cmu.edu>,Brandon Tober <btober@cmu.edu>"]
license = "MIT License"
readme = "README.md"
packages = [
{ include = "pygem" }
]
[tool.poetry.urls]
Documentation = "https://pygem.readthedocs.io/"
Repository = "https://github.com/PyGEM-Community/PyGEM"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
PyYAML = "^6.0.2"
salem = "^0.3.11"
tables = "^3.10.1"
geopandas = "^1.0.1"
xarray = "^2024.10.0"
pandas = "^2.2.3"
numpy = "<2.0"
scipy = "^1.14.1"
matplotlib = "^3.9.2"
rasterio = "^1.4.2"
pyproj = "^3.7.0"
torch = ">=2.0.0,<=2.2.2"
gpytorch = "^1.13"
scikit-learn = "^1.5.2"
tqdm = "^4.66.6"
jupyter = "^1.1.1"
arviz = "^0.20.0"
oggm = { git = "https://github.com/OGGM/oggm.git"}
ruamel-yaml = "^0.18.10"
ruff = ">=0.9.6"
pytest = ">=8.3.4"
pytest-cov = ">=6.0.0"
nbmake = ">=1.5.5"
[tool.poetry.scripts]
initialize = "pygem.bin.op.initialize:main"
preproc_fetch_mbdata = "pygem.bin.preproc.preproc_fetch_mbdata:main"
preproc_wgms_estimate_kp = "pygem.bin.preproc.preproc_wgms_estimate_kp:main"
run_spinup = "pygem.bin.run.run_spinup:main"
run_inversion = "pygem.bin.run.run_inversion:main"
run_calibration_frontalablation = "pygem.bin.run.run_calibration_frontalablation:main"
run_calibration = "pygem.bin.run.run_calibration:main"
run_mcmc_priors = "pygem.bin.run.run_mcmc_priors:main"
run_simulation = "pygem.bin.run.run_simulation:main"
postproc_subannual_mass = "pygem.bin.postproc.postproc_subannual_mass:main"
postproc_binned_subannual_thick = "pygem.bin.postproc.postproc_binned_subannual_thick:main"
postproc_distribute_ice = "pygem.bin.postproc.postproc_distribute_ice:main"
postproc_compile_simulations = "pygem.bin.postproc.postproc_compile_simulations:main"
list_failed_simulations = "pygem.bin.op.list_failed_simulations:main"
duplicate_gdirs = "pygem.bin.op.duplicate_gdirs:main"
compress_gdirs = "pygem.bin.op.compress_gdirs:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C", # mccabe complexity
"E", "W", # Pycodestyle
"F", # Pyflakes
"I", # isort
]
ignore = [
"B006", # Mutable data structures in argument defaults
"B007", # Loop control variable not used within loop body
"B008", # Function call `range` in argument defaults
"B023", # Function definition does not bind loop variable
"B905", # Missing explicit `strict=` parameter in `zip()` call
"C405", # Unnecessary list literal
"C408", # Unnecessary `dict()` call
"C414", # Unnecessary `list()` call
"C416", # Unnecessary list comprehension
"C901", # Function too complex
"E402", # Module level import not at top of file
"E501", # Line too long
"E712", # Avoid equality comparisons to `False`
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()`
"E722", # Using bare `except`
"F841", # Local variable assigned to but never used
]
[tool.coverage.report]
omit = ["pygem/tests/*"]
show_missing = true
skip_empty = true