Skip to content

Commit b4beddd

Browse files
committed
Refactoring, remove dependency on CMOR
1 parent 1f93246 commit b4beddd

File tree

164 files changed

+60612
-54822
lines changed

Some content is hidden

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

164 files changed

+60612
-54822
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
src/access_mopper/_version.py export-subst
2+
# SCM syntax highlighting & preventing 3-way merges
3+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
__pycache__/
2-
build/
3-
*.csv
4-
*.yaml
5-
localdata/
2+
docs/build
63
src/access_mopper.egg-info
7-
MOPPeR_outputs
4+
# pixi environments
5+
.pixi

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0 # Check the latest version
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: "src/access_mopper/cmor_tables"
7+
- id: end-of-file-fixer
8+
exclude: "src/access_mopper/cmor_tables"
9+
- id: check-yaml
10+
exclude: "^(src/access_mopper/cmor_tables|.conda/meta.yaml)$"
11+
- id: check-added-large-files
12+
- id: debug-statements # Detects print() and pdb in code
13+
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.3.0 # Check the latest version
16+
hooks:
17+
- id: ruff # Linting
18+
exclude: "^(src/access_mopper/cmor_tables|src/access_mopper/_version.py|src/access_mopper/calc_ocean.py|src/access_mopper/calc_seaice.py)$" # Exclude files or directories
19+
- id: ruff-format # Auto-formatting
20+
exclude: "^(src/access_mopper/cmor_tables|src/access_mopper/_version.py)$"

0 commit comments

Comments
 (0)