Skip to content

Commit 799373d

Browse files
authored
Adopt new pooch-based versioning system approach (#43)
### Description The modifications here completely change the way that testing data is managed in order to provide a versioning system as well as reduce the number of remote requests to GitHub. Projects that rely on `raven-testdata` will now use `pooch` alongside file registries to track the file and checksums, as well as manage the caches. This repo will also now be using tagged commits to ensure that testing data is kept up-to-date while at the same time facilitating easier backtracking if needed. ### Changes - All `md5` files have been removed. - The `README.md` has been updated to detail the new process for fetching data with `pooch` - The `report_check_sums.py` script now creates new registries as well as updates the registry table in the `README.md` - The return characters in the text files have been converted to `LF` to ensure that checksums remain the same when opened on Linux and macOS; lots of redundant whitespace has also been removed from tables. ### What's next Once this PR is approved, `main` will be tagged using calendar versioning as the first stable version. Once all projects reliant on `raven-testdata` have been updated to the new system, the default branch will change from `master` to `main`. The `master` branch will be kept for backwards-compatibility. See also: CSHS-CWRA/RavenPy#513
1 parent 2e45c45 commit 799373d

File tree

418 files changed

+132328
-132205
lines changed

Some content is hidden

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

418 files changed

+132328
-132205
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ dmypy.json
129129
.pyre/
130130

131131
#JetBrains
132-
.idea/
132+
.idea/

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
default_language_version:
2+
python: python3
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: check-added-large-files
9+
args: [ '--maxkb=2000' ]
10+
- id: check-merge-conflict
11+
- id: check-yaml
12+
args: [ '--allow-multiple-documents' ]
13+
- id: end-of-file-fixer
14+
- id: fix-byte-order-marker
15+
- id: mixed-line-ending
16+
args: [ '--fix=lf' ]
17+
- id: no-commit-to-branch
18+
args: [ '--branch=main' ]
19+
- id: trailing-whitespace
20+
- repo: meta
21+
hooks:
22+
- id: check-hooks-apply
23+
- id: check-useless-excludes

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) 2020 Ouranos inc.
3+
Copyright (c) 2020-2025 Ouranos inc.
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

README.md

Lines changed: 83 additions & 24 deletions

XSS_forecast_data/XSS_fcst_det.nc.md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

XSS_forecast_data/XSS_fcst_ens.nc.md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

XSS_forecast_data/XSS_obs.nc.md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

basinmaker/drainage_region_0175_v2-1/LICENSE.txt.md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

basinmaker/drainage_region_0175_v2-1/ReadMe.txt.md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)