-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
101 lines (92 loc) · 2.21 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
[project]
name = "pyrte_rrtmgp"
version = "0.0.6"
description = "A Python interface to the RTE+RRTMGP Fortran software package."
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"numpy>=2.0.0",
"xarray>=2023.5.0",
"netcdf4>=1.5.7",
"requests>=2.4.0",
"pytest>=6.0.0"
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.optional-dependencies]
test = [
"pytest>=6.0.0",
"numpy>=2.0.0",
"xarray>=2023.5.0",
"netcdf4>=1.5.7",
"requests>=2.4.0"
]
[project.scripts]
pyrte_rrtmgp = "pyrte_rrtmgp.cli:main"
[build-system]
requires = ["scikit-build-core>=0.3.3", "pybind11"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
wheel.expand-macos-universal-tags = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = ["error"]
testpaths = ["tests"]
[tool.cibuildwheel]
test-command = "pytest {project}/tests"
test-extras = ["test"]
test-skip = ["*universal2:arm64"]
build-verbosity = 1
[tool.black]
line-length = 88
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| pyrte_rrtmgp/tests/(?!test_python_frontend).*
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
skip_glob = ["pyrte_rrtmgp/tests/*"]
extend_skip_glob = ["!pyrte_rrtmgp/tests/test_python_frontend/*"]
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503", "D100", "D101", "D102", "D103", "D104", "D107", "E501"]
exclude = [
".git",
"__pycache__",
"build",
"dist",
"pyrte_rrtmgp/tests/*",
"conda.recipe/*",
"*.yaml",
"*.yml"
]
per-file-ignores = "__init__.py:F401"