forked from ai2cm/ace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (65 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
78 lines (65 loc) · 2.2 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fme"
description = "Train and evaluate weather/climate model emulators"
readme = "PACKAGE_README.md"
requires-python = ">=3.11"
license = {file = "LICENSE"}
authors = [
{name = "Ai2 Climate Modeling", email = "climate-public-maintainer@allenai.org"}
]
keywords = ["weather", "climate", "machine learning", "emulation"]
classifiers = [
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
dynamic = ["dependencies", "optional-dependencies", "version"]
[project.urls]
Homepage = "https://github.com/ai2cm/ace"
Documentation = "https://ai2-climate-emulator.readthedocs.io/"
[tool.setuptools.dynamic]
version = {attr = "fme.__version__"}
dependencies = { file = "requirements.txt" }
optional-dependencies.dev = { file = "requirements-dev.txt" }
optional-dependencies.docs = { file = "docs/requirements.txt" }
optional-dependencies.deploy = { file = "requirements-deploy.txt" }
[tool.setuptools.packages]
find = {}
[tool.uv]
cache-keys = [
{ file = "requirements.txt" },
{ file = "requirements-dev.txt" },
{ file = "docs/requirements.txt" },
{ file = "requirements-healpix.txt" },
]
[tool.ruff.lint]
select = ["D", "E", "F", "I", "W", "UP"]
ignore = ["D1", "D200", "D205", "D212", "E203", "W293", "F541", "E402"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"scripts/*" = ["D", "UP"] # scripts may run in different python env, so ignore UP rules
"test_*.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
split-on-trailing-comma = false
known-third-party = ["wandb"]
[tool.coverage.run]
branch = true
source_pkgs = ["fme"]
[tool.coverage.report]
omit = ["test_*.py"]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
[tool.pytest.ini_options]
norecursedirs = ["filtered_repo"]