Skip to content

Commit 640073d

Browse files
Copy and adapt relevant files from om3utils.
1 parent 49a0bb0 commit 640073d

11 files changed

+992
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.pyc
2+
/__pycache__
3+
/build
4+
/dist
5+
_version.py
6+
.coverage
7+
coverage.xml
8+
*.egg-info
9+
.ipynb_checkpoints
10+
.vscode
11+
.idea

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/psf/black
5+
rev: 24.4.0
6+
hooks:
7+
- id: black
8+
language_version: python3

pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[project]
2+
name = "access-parsers"
3+
dynamic = ["version"]
4+
description = "Collection of parsers to read/write input and output files used in ACCESS climate models."
5+
authors = [
6+
{name = "Micael Oliveira", email="[email protected]"},
7+
]
8+
readme = "README.md"
9+
keywords = ["parser", "access"]
10+
classifiers = [
11+
"License :: OSI Approved :: Apache Software License",
12+
"Operating System :: POSIX :: Linux",
13+
"Programming Language :: Python :: 3",
14+
"Topic :: Utilities",
15+
]
16+
dependencies = [
17+
"f90nml",
18+
"ruamel.yaml",
19+
]
20+
21+
[build-system]
22+
requires = ["setuptools", "setuptools_scm[toml]"]
23+
build-backend = "setuptools.build_meta"
24+
25+
26+
[tool.setuptools_scm]
27+
write_to = "src/access/parsers/_version.py"
28+
29+
30+
[project.optional-dependencies]
31+
devel = [
32+
"flake8",
33+
"black",
34+
"pre-commit",
35+
]
36+
test = [
37+
"pytest",
38+
"pytest-cov",
39+
]
40+
41+
[tool.pytest.ini_options]
42+
addopts = ["--cov=access.parsers", "--cov-report=term", "--cov-report=html", "--cov-report=xml"]
43+
testpaths = ["tests"]
44+
45+
[tool.coverage.run]
46+
omit = ["src/access/parsers/__init__.py", "src/access/parsers/_version.py"]
47+
48+
[tool.black]
49+
line-length = 120
50+
51+
[tool.flake8]
52+
max-line-length = 120

0 commit comments

Comments
 (0)