-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit to manage code style & repo QA (#22)
Initial hooks: * Code formatting by black * Trim trailing whitespace * Ensure that files are either empty, or end with one newline * Confirm that YAML files have parsable syntax * Confirm that XML files have parsable syntax * Prevent files larger than 500 kB from being committed
- Loading branch information
1 parent
35f6b48
commit 77985d2
Showing
25 changed files
with
143 additions
and
112 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 |
---|---|---|
|
@@ -14,4 +14,3 @@ jobs: | |
issues: write | ||
pull-requests: write | ||
uses: UBC-MOAD/gha-workflows/.github/workflows/auto-assign.yaml@main | ||
|
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,22 @@ | ||
# Git pre-commit hooks config file | ||
# Only takes effect if you have pre-commit installed in the env, | ||
# and after you run `pre-commit install` | ||
# | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
# Out-of-the-box hooks from the pre-commit org | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-xml | ||
exclude: ^datasets\/(prefix|postfix)\.xml$ | ||
- id: check-added-large-files | ||
# Code formatting with black | ||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"structlog" | ||
], | ||
"esbonio.sphinx.confDir": "" | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Vancouver Fraser Port Authority (VFPA)</att> | ||
<att name="infoUrl">https://salishsea.eos.ubc.ca/</att> | ||
<att name="institution">UCB EOAS, DFO IOS & VFPA</att> | ||
|
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,7 +13,7 @@ | |
<att name="subsetVariables">fileType</att> | ||
<att name="infoUrl">https://salishsea.eos.ubc.ca/</att> | ||
<att name="institution">UBC EOAS & DFO IOS</att> | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
Fisheries and Oceans Canada, Institute of Ocean Sciences</att> | ||
<att name="keywords">model results, file, identifier, lastModified, modified, name, size, time</att> | ||
<att name="license">The SalishSeaCast model results are copyright | ||
|
@@ -43,8 +43,8 @@ R12: FVCOM-4.1; NEMO-3.6; ubcSSnBathymetryV17-02 bathymetry. | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
Digital Research Alliance of Canada</att> | ||
<att name="history">null</att> | ||
</addAttributes> | ||
|
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,7 +13,7 @@ | |
<att name="subsetVariables">fileType</att> | ||
<att name="infoUrl">https://salishsea.eos.ubc.ca/</att> | ||
<att name="institution">UBC EOAS & DFO IOS</att> | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
Fisheries and Oceans Canada, Institute of Ocean Sciences</att> | ||
<att name="keywords">model results, file, identifier, lastModified, modified, name, size, time</att> | ||
<att name="license">The SalishSeaCast model results are copyright | ||
|
@@ -43,8 +43,8 @@ X2: FVCOM-4.1; NEMO-3.6; ubcSSnBathymetryV17-02 bathymetry. | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
Digital Research Alliance of Canada</att> | ||
<att name="history">null</att> | ||
</addAttributes> | ||
|
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,7 +13,7 @@ | |
<att name="subsetVariables">fileType</att> | ||
<att name="infoUrl">https://salishsea.eos.ubc.ca/</att> | ||
<att name="institution">UBC EOAS & DFO IOS</att> | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
Fisheries and Oceans Canada, Institute of Ocean Sciences</att> | ||
<att name="keywords">model results, file, identifier, lastModified, modified, name, size, time</att> | ||
<att name="license">The SalishSeaCast model results are copyright | ||
|
@@ -40,8 +40,8 @@ V2: FVCOM-4.1; NEMO-3.6; ubcSSnBathymetryV17-02 bathymetry. | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
<att name="acknowledgement">Fisheries & Oceans Canada, | ||
Ocean Networks Canada (ONC), | ||
Digital Research Alliance of Canada</att> | ||
<att name="history">null</att> | ||
</addAttributes> | ||
|
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 |
---|---|---|
|
@@ -27,13 +27,13 @@ https://bitbucket.org/salishsea/nemo-forcing/src/tip/grid/bathymetery_201702.nc | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
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 |
---|---|---|
|
@@ -25,13 +25,13 @@ | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
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 |
---|---|---|
|
@@ -27,13 +27,13 @@ https://bitbucket.org/salishsea/nemo-forcing/src/tip/grid/bathymetery_201702.nc | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
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 |
---|---|---|
|
@@ -25,13 +25,13 @@ | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
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 |
---|---|---|
|
@@ -24,13 +24,13 @@ | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
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 |
---|---|---|
|
@@ -24,13 +24,13 @@ | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
<att name="acknowledgement">Canadian Hydrographic Service (CHS), | ||
National Ocean and Atmospheric Administration (NOAA), | ||
United States Geological Service (USGS), | ||
Digital Research Alliance of Canada | ||
|
||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
This product has been produced by the University of British Columbia based in part on | ||
Canadian Hydrographic Service charts and/or data, pursuant to CHS Direct User Licence | ||
No. 2016-0504-1260-U. | ||
|
||
The incorporation of data sourced from CHS in this product shall not be construed as | ||
|
@@ -75,7 +75,7 @@ v17-02: same variables, | |
* CHS Multibeam data and all point cloud data for the Salish Sea. | ||
Straightened and smoothed Juan de Fuca & Johnstone Strait open boundaries. | ||
Added proxy channel for Fraser River upstream of confluence with the Pitt River. | ||
Adjustments by Michael Dunphy to increase resolution of Fraser River channels downstream of | ||
Adjustments by Michael Dunphy to increase resolution of Fraser River channels downstream of | ||
confluence with the Pitt River. | ||
v21-08: same variables, | ||
Bathymetry composed from 3 datasets: | ||
|
@@ -84,7 +84,7 @@ v21-08: same variables, | |
* CHS Multibeam data and all point cloud data for the Salish Sea. | ||
Straightened and smoothed Juan de Fuca & Johnstone Strait open boundaries. | ||
Added proxy channel for Fraser River upstream of confluence with the Pitt River. | ||
Adjustments by Michael Dunphy to increase resolution of Fraser River channels downstream of | ||
Adjustments by Michael Dunphy to increase resolution of Fraser River channels downstream of | ||
confluence with the Pitt River. | ||
Moved coastline to 2m isobath and set depth there to 4m; in contrast to 4m depth at 0m isobath; | ||
volume is approximately conserved. | ||
|
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,7 +13,7 @@ | |
<att name="subsetVariables">fileType</att> | ||
<att name="infoUrl">https://salishsea.eos.ubc.ca/</att> | ||
<att name="institution">UBC EOAS & DFO IOS</att> | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
<att name="institution_fullname">Dept of Earth, Ocean & Atmospheric Sciences, University of British Columbia, | ||
Fisheries and Oceans Canada, Institute of Ocean Sciences</att> | ||
<att name="keywords">model results, file, identifier, lastModified, modified, name, size, time</att> | ||
<att name="license">The SalishSeaCast model results are copyright | ||
|
@@ -37,8 +37,8 @@ v17-02: WaveWatch III® v5.16; NEMO-3.6; ubcSSnBathymetryV17-02 bathymetry; | |
<att name="creator_name">SalishSeaCast Project Contributors</att> | ||
<att name="creator_email">[email protected]</att> | ||
<att name="creator_url">https://salishsea-meopar-docs.readthedocs.io/</att> | ||
<att name="acknowledgement">Fisheries & Oceans CanadaCast, | ||
Ocean Networks Canada (ONC), | ||
<att name="acknowledgement">Fisheries & Oceans CanadaCast, | ||
Ocean Networks Canada (ONC), | ||
Digital Research Alliance of Canada</att> | ||
<att name="history">null</att> | ||
</addAttributes> | ||
|
Oops, something went wrong.