Skip to content

Commit 3946aae

Browse files
authored
Merge pull request #12 from ISI-MIP/isimip_utils
Refactor and use isimip-utils
2 parents 86eee79 + 0de1966 commit 3946aae

File tree

113 files changed

+1142
-2078979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1142
-2078979
lines changed

.github/workflows/ci.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- test
8+
tags:
9+
- "*"
10+
pull_request:
11+
branches:
12+
- main
13+
14+
permissions:
15+
contents: read
16+
actions: read
17+
18+
env:
19+
PYTHONDONTWRITEBYTECODE: 1
20+
FORCE_COLOR: 1
21+
PYTHON_VERSION: "3.12"
22+
23+
jobs:
24+
build:
25+
name: Build distribution 👷
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout repo 🛎️
30+
uses: actions/checkout@v6
31+
with:
32+
persist-credentials: false
33+
34+
- name: Set up Python 🐍
35+
uses: actions/setup-python@v6
36+
with:
37+
python-version: ${{ env.PYTHON_VERSION }}
38+
cache: pip
39+
40+
- name: Install build 🧱
41+
run: python3 -m pip install build --user
42+
43+
- name: Build a binary wheel and a source tarball 🛠️
44+
run: python3 -m build
45+
46+
- name: Store the distribution packages 📤
47+
uses: actions/upload-artifact@v5
48+
with:
49+
name: python-package-distributions
50+
path: dist/
51+
52+
pypi:
53+
name: Publish distribution to PyPI 📦
54+
if: startsWith(github.ref, 'refs/tags/')
55+
needs: build
56+
runs-on: ubuntu-latest
57+
58+
environment:
59+
name: pypi
60+
url: https://pypi.org/p/isimip-ea
61+
62+
permissions:
63+
id-token: write
64+
65+
steps:
66+
- name: Download the distribution packages 📥
67+
uses: actions/download-artifact@v6
68+
with:
69+
name: python-package-distributions
70+
path: dist/
71+
72+
- name: Publish to PyPI 🚀
73+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/ci.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ __pycache__/
77
*.save
88
.DS_Store
99

10+
/env
11+
/venv
12+
1013
/build
1114
/dist
1215
/*.egg-info
16+
1317
/.pytest_cache
1418
/.ruff_cache
19+
1520
/.coverage*
1621
/htmlcov
17-
/env
18-
/.env
19-
*.sh
20-
21-
testing/tmp
22-
23-
.ipynb_checkpoints

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ repos:
33
hooks:
44
- id: check-hooks-apply
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v6.0.0
77
hooks:
88
- id: check-ast
9+
- id: check-yaml
910
- id: end-of-file-fixer
10-
exclude: \.json$
1111
- id: trailing-whitespace
12-
exclude: fldmean\.csv$
1312
- id: debug-statements
13+
1414
- repo: https://github.com/charliermarsh/ruff-pre-commit
15-
rev: v0.0.284
15+
rev: v0.14.6
1616
hooks:
1717
- id: ruff
1818
args: [--fix, --exit-non-zero-on-fix]
19+
20+
- repo: https://github.com/crate-ci/typos
21+
rev: v1.39.2
22+
hooks:
23+
- id: typos

CITATION.cff

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
cff-version: 1.2.0
2-
title: ISIMIP quality assessment
3-
message: >-
4-
If you use this software, please cite it using the
5-
metadata from this file.
6-
type: software
2+
message: If you use this software in your research, please cite it using the provided Digital Object Identifier (DOI).
3+
4+
title: ISIMIP extraction and analysis
5+
abstract: A command line tool for extraction and analysis of datasets within the ISIMIP project.
6+
77
authors:
88
- family-names: Klar
99
given-names: Jochen
1010
orcid: 'https://orcid.org/0000-0002-5883-4273'
1111
- family-names: Büchner
1212
given-names: Matthias
1313
orcid: 'https://orcid.org/0000-0002-1382-7424'
14-
- family-names: Mengel
15-
given-names: Matthias
16-
orcid: 'https://orcid.org/0000-0001-6724-9685'
17-
repository-code: 'https://github.com/ISI-MIP/isimip-qc'
14+
- family-names: Inga
15+
given-names: Sauer
16+
orcid: https://orcid.org/0000-0002-9302-2131
17+
1818
license: MIT
19+
repository-code: 'https://github.com/ISI-MIP/isimip-qc'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Inter-Sectoral Impact Model Intercomparison Project
3+
Copyright (c) 2022-2026 Potsdam Institute for Climate Impact Research
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)