-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
110 lines (101 loc) · 2.78 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
# --- PROJECT CONFIGURATION --- #
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
# Metadata (see https://peps.python.org/pep-0621/)
[project]
name = "dags"
dynamic = ["version"] # Set automtically using git: https://setuptools-git-versioning.readthedocs.io/en/stable/
description = "Dags for running jobs via Dagster on Leonardo"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.11.0"
license = {text = "MIT License"}
authors = [
{ name = "Jacob Bieker", email = "[email protected]"},
{ name = "Sol Cotton", email = "[email protected]"},
]
classifiers = ["Programming Language :: Python :: 3"]
dependencies = [
"cdsapi >= 0.6.1",
"ecmwf-api-client >= 1.6.3",
"dagit >= 1.8.5",
"dagster >= 1.8.5",
"dagster-cloud >= 1.8.5",
"dagster-webserver >= 1.8.5",
"dagster-graphql >= 1.8.5",
"dagster-postgres >= 0.24.5",
"dagster-docker >= 0.24.5",
"dagster-pipes >= 1.8.5",
"huggingface-hub >= 0.19.4",
"kbatch >= 0.4.2",
"meteomatics == 2.11.1",
"numpy >= 1.26.0",
"nwp-consumer >= 0.5.8",
"ocf-blosc2 >= 0.0.3",
"pathlib >= 1.0.1",
"pyarrow >= 10.0.1",
"requests >= 2.31.0",
"requests-toolbelt >= 1.0.0",
"xarray >= 2022.3.0",
"zarr >= 2.13.3",
]
[project.optional-dependencies]
dev = [
"mypy == 1.7.1",
"ruff == 0.1.7",
"unittest-xml-reporting == 3.2.0",
"pytest >= 7.4.1",
"python-lsp-server == 1.7.4"
]
[tool.setuptools.packages.find]
exclude = ["*_tests"]
# Ruff configuration
# * See https://beta.ruff.rs/docs/
[tool.ruff]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # whitespace and newlines
"I", # isort
"UP", # modernize
"ANN", # flake8 type annotations
"S", # flake8 bandit
"B", # flake8 bugbear
"C4", # flake8 comprehensions
"COM", # flake8 commas
"T20", # flake8 print
"SIM", # flake8 simplify
"ARG", # flake8 unused arguments
"DTZ", # flake8 datetimes
"Q", # flake8 quotes
"TCH", # flake8 typecheck
"D", # pydocstyle
"RUF", # ruff-specific rules
]
line-length = 100
indent-width = 4
# Use pydocstyle Google convention
# See https://www.pydocstyle.org/en/stable/error_codes.html
ignore = [
"D203", "D213", "D215", "D400", "D401", "D404", "D406",
"D407", "D408", "D409", "D413",
"ANN101",
]
exclude = ["__init__.py"]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.per-file-ignores]
"test*" = ["D", "ANN"]
# MyPy configuration
# * See https://mypy.readthedocs.io/en/stable/index.html
[tool.mypy]
python_version = "3.12"
warn_return_any = true
disallow_untyped_defs = true
ignore_missing_imports = true
plugins = [
'numpy.typing.mypy_plugin'
]