generated from ACCESS-NRI/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
99 lines (91 loc) · 1.76 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
[project]
name = "model_config_tests"
version = "0.0.9"
authors = [
{ name = "ACCESS-NRI" },
]
description = "Test for ACCESS model (payu) configurations"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
]
dependencies = [
"f90nml >=0.16",
"requests",
"PyYAML",
"requests",
"pytest >=8.0.1",
"ruamel.yaml >=0.18.5",
"jsonschema >=4.21.1",
"payu >=1.1.3"
]
[project.optional-dependencies]
test = [
"pytest-cov"
]
[project.scripts]
model-config-tests = "model_config_tests.__main__:main"
[project.urls]
Homepage = "https://github.com/ACCESS-NRI/model-config-tests/"
Issues = "https://github.com/ACCESS-NRI/model-config-tests/issues"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
]
[tool.ruff]
target-version = "py39"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
ignore = [
"E402",
"E501",
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# Pyupgrade
"UP",
]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.isort]
known-first-party = ["model_config_tests"]