-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into unravel_CH4_coarse
- Loading branch information
Showing
34 changed files
with
4,015 additions
and
2,969 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Apply pre-commit (from #156) | ||
ca1f43c23f1c0936cb9f9e1062854fdf0060c409 |
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,44 +1,83 @@ | ||
exclude: "^LICENSES" | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
- id: mixed-line-ending | ||
- id: check-yaml | ||
- id: check-merge-conflict | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
args: ['--maxkb=2000'] | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
args: ["--maxkb=2000"] | ||
|
||
# Sort package imports alphabetically | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
# 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.3.0 | ||
hooks: | ||
- id: codespell | ||
args: ['--ignore-regex="(\b[A-Z]+\b)"', '--ignore-words-list=fom,appartment,bage,ore,setis,tabacco,berfore,vor'] # 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: v1.7.5 | ||
hooks: | ||
- id: docformatter | ||
args: ["--in-place", "--make-summary-multi-line", "--pre-summary-newline"] | ||
|
||
- repo: https://github.com/keewis/blackdoc | ||
rev: v0.3.9 | ||
hooks: | ||
- id: blackdoc | ||
|
||
# Formatting with "black" coding style | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.4.2 | ||
hooks: | ||
# Format Python files | ||
- id: black | ||
# Format Jupyter Python notebooks | ||
- id: black-jupyter | ||
|
||
# Remove output from Jupyter notebooks | ||
- repo: https://github.com/aflc/pre-commit-jupyter | ||
rev: v1.2.1 | ||
hooks: | ||
- id: jupyter-notebook-cleanup | ||
args: ["--remove-kernel-metadata"] | ||
|
||
# Do YAML formatting (before the linter checks it for misses) | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.14.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix, --indent, "2", --preserve-quotes] | ||
|
||
# Format Snakemake rule / workflow files | ||
- repo: https://github.com/snakemake/snakefmt | ||
rev: v0.6.0 | ||
rev: v0.10.2 | ||
hooks: | ||
- id: snakefmt | ||
- repo: https://github.com/jonasbb/pre-commit-latex-hooks | ||
rev: v1.3.0 | ||
hooks: | ||
- id: american-eg-ie | ||
- id: cleveref-capitalization | ||
- id: consistent-spelling | ||
args: | ||
[ | ||
"--emph=et al.", | ||
'--regex=naive=\bna(i|\\"i)ve', | ||
'--regex=optimisation=\boptimi(s|z)ation', | ||
] | ||
- id: ensure-labels-for-sections | ||
- id: no-space-in-cite | ||
- id: tilde-cite | ||
- id: unique-labels | ||
# - repo: https://github.com/fsfe/reuse-tool | ||
# rev: latest | ||
# hooks: | ||
# - id: reuse | ||
|
||
# For cleaning jupyter notebooks | ||
- repo: https://github.com/aflc/pre-commit-jupyter | ||
rev: v1.2.1 | ||
hooks: | ||
- id: jupyter-notebook-cleanup | ||
exclude: examples/solve-on-remote.ipynb |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ __pycache__ | |
.ipynb_checkpoints | ||
.vscode | ||
resources | ||
results | ||
results |
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 |
---|---|---|
|
@@ -10,4 +10,3 @@ authors: | |
- family-names: Your surname | ||
given-names: Christoph Tries | ||
orcid: https://orcid.org/0009-0000-2425-0993 | ||
|
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,4 +1,5 @@ | ||
# Changelog | ||
|
||
- fix the hydrogen import boundary condition | ||
- add primary oil bus and account for refinery emissions | ||
- added Changelog file |
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
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ private: | |
|
||
remote: | ||
ssh: "" | ||
path: "" | ||
path: "" |
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.