-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from iiasa/workflow
Workflow
- Loading branch information
Showing
49 changed files
with
3,817 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[run] | ||
omit = aneris/tutorial.py | ||
omit = aneris/tutorial.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,72 @@ | ||
#* | ||
aneris/_version.py | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
*# | ||
# C extensions | ||
*.so | ||
|
||
# editors | ||
*.swp | ||
*~ | ||
*.pyc | ||
build | ||
dist | ||
*.egg-info | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
_version.py | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
.* | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/html | ||
docs/latex | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
venv | ||
# Editor settings | ||
.spyderproject | ||
.spyproject | ||
.ropeproject | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
#- id: fix-encoding-pragma # ruff does not thing this makes sense | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
args: ["--maxkb=2000"] | ||
|
||
# # Convert relative imports to absolute imports | ||
# - repo: https://github.com/MarcoGorelli/absolufy-imports | ||
# rev: v0.3.1 | ||
# hooks: | ||
# - id: absolufy-imports | ||
|
||
# Find common spelling mistakes in comments and docstrings | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.2 | ||
hooks: | ||
- id: codespell | ||
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom'] # Ignore capital case words, e.g. country codes | ||
types_or: [python, rst, markdown] | ||
files: ^(scripts|doc)/ | ||
|
||
# Make docstrings PEP 257 compliant | ||
- repo: https://github.com/PyCQA/docformatter | ||
rev: 06907d0 # Update to new version when https://github.com/PyCQA/docformatter/issues/293 is closed | ||
hooks: | ||
- id: docformatter | ||
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"] | ||
|
||
- repo: https://github.com/keewis/blackdoc | ||
rev: v0.3.8 | ||
hooks: | ||
- id: blackdoc | ||
|
||
# Formatting with "black" coding style | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
# Format Python files | ||
- id: black | ||
# Format Jupyter Python notebooks | ||
- id: black-jupyter | ||
|
||
# Linting with ruff | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.7.4 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
|
||
# # Check for FSFE REUSE compliance (licensing) | ||
# - repo: https://github.com/fsfe/reuse-tool | ||
# rev: v1.1.2 | ||
# hooks: | ||
# - id: reuse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ python: | |
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: [docs] | ||
extra_requirements: [docs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[report] | ||
omit = | ||
aneris/_version.py | ||
aneris/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,3 @@ fi | |
|
||
# update conda | ||
conda update --yes conda | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ include: | |
- _static | ||
- _modules | ||
- _templates | ||
- _downloads | ||
- _downloads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.