Skip to content

Commit cd7464d

Browse files
authored
Major refactor (#36)
#major * update packaging * refactor * add model tests * Update example configs and README * update reqs * Export datamodule to huggingface * add migration script
1 parent 5b2b3d0 commit cd7464d

Some content is hidden

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

50 files changed

+2270
-1614
lines changed

.bumpversion.cfg

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

.flake8

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

.github/workflows/branch_ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Branch CI (Python)
2+
run-name: 'Test branch commit "${{ github.event.head_commit.message }}"'
3+
4+
on:
5+
push:
6+
branches-ignore: [ "main" ]
7+
paths-ignore: ['README.md']
8+
9+
jobs:
10+
branch-ci:
11+
uses: openclimatefix/.github/.github/workflows/branch_ci.yml@main
12+
secrets: inherit
13+
with:
14+
enable_linting: true
15+
enable_typechecking: false
16+
containerfile: 'None'
17+
tests_folder: 'tests'
18+
tests_matrix: true

.github/workflows/merged_ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Merged CI
2+
run-name: 'Bump tag with merge #${{ github.event.number }} "${{ github.event.pull_request.title }}"'
3+
4+
on:
5+
pull_request_target:
6+
types: ["closed"]
7+
branches: [ "main" ]
8+
9+
jobs:
10+
bump-tag:
11+
uses: openclimatefix/.github/.github/workflows/bump_tag.yml@main
12+
secrets: inherit

.github/workflows/pull_ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Pull CI (Python)
2+
run-name: 'Test PR edit #${{ github.event.number }} "${{ github.event.pull_request.title }}"'
3+
4+
on:
5+
pull_request:
6+
paths-ignore: ['README.md']
7+
8+
jobs:
9+
10+
pull-ci:
11+
uses: openclimatefix/.github/.github/workflows/branch_ci.yml@main
12+
if: ${{ github.event.pull_request.head.repo.fork }}
13+
with:
14+
enable_linting: true
15+
enable_typechecking: false
16+
containerfile: 'None'
17+
tests_folder: 'tests'
18+
tests_matrix: true

.github/workflows/release.yaml

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

.github/workflows/tagged_ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Tagged CI
2+
run-name: 'Tagged CI for ${{ github.ref_name }} by ${{ github.actor }}'
3+
4+
on:
5+
push:
6+
tags: ["v*.*.*"]
7+
8+
jobs:
9+
tagged-ci:
10+
uses: openclimatefix/.github/.github/workflows/tagged_ci.yml@main
11+
secrets: inherit
12+
with:
13+
containerfile: 'None'
14+
enable_pypi: true

.github/workflows/test.yaml

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

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ notebooks/
1111
*.csv
1212
latest_logged_train_batch.png
1313

14+
# Ignore all model cards...
15+
pvnet/model_cards/*
16+
17+
# ...except for the empty template.
18+
!pvnet/model_cards/empty_model_card_template.md
19+
1420
# Byte-compiled / optimized / DLL files
1521
__pycache__/
1622
*.py[cod]
@@ -140,3 +146,7 @@ dmypy.json
140146

141147
# Pyre type checker
142148
.pyre/
149+
.DS_Store
150+
151+
# vim
152+
*swp

.isort.cfg

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

0 commit comments

Comments
 (0)