-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bd99c9
commit 442f076
Showing
137 changed files
with
1,925 additions
and
7,819 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
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 |
---|---|---|
|
@@ -48,29 +48,23 @@ jobs: | |
with: | ||
fetch-depth: 0 # need this so tags are pulled and versions work | ||
|
||
- name: Get year week | ||
id: date | ||
run: echo "date=$(date +'%Y:%U')" >> $GITHUB_STATE | ||
|
||
- name: setup conda env | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: test | ||
use-mamba: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache conda env | ||
uses: actions/cache@v3 | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
path: ${{ env.prefix }} | ||
key: ${{ env.cache_key }}-hash${{ hashFiles(env.env_file) }}-${{ steps.date.outputs.date }}-${{ env.CACHE_NUMBER }} | ||
id: cache | ||
|
||
- name: Update environment | ||
run: mamba env update -n test -f ${{ env.env_file }} | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
micromamba-version: '1.5.8-0' # versions: https://github.com/mamba-org/micromamba-releases | ||
environment-file: .github/workflows/test_conda_env.yml | ||
init-shell: >- | ||
bash | ||
powershell | ||
cache-environment: true | ||
post-cleanup: 'all' | ||
|
||
# Not sure why this is needed but it appears to be the case | ||
- name: fix env | ||
shell: bash -l {0} | ||
run: | | ||
micromamba shell init --shell bash --root-prefix=~/micromamba | ||
eval "$(micromamba shell hook --shell bash)" | ||
micromamba activate test | ||
- name: install obsplus | ||
shell: bash -l {0} | ||
|
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,30 +1,33 @@ | ||
exclude: scripts/_templates | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
- id: check-merge-conflict | ||
- id: mixed-line-ending | ||
args: ['--fix=lf'] | ||
|
||
# Ruff is a replacement for flake8 and many other linters (much faster too) | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.8 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.10.0 | ||
- id: ruff | ||
args: ["--fix"] | ||
# Run the formatter. | ||
- id: ruff-format | ||
|
||
# ensures __future__ import annotations at top of files which require it | ||
# for the typing features they are using. | ||
- repo: https://github.com/frostming/fix-future-annotations | ||
rev: 0.5.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==21.5b1] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-black | ||
- flake8-breakpoint | ||
- flake8-docstrings | ||
- id: fix-future-annotations | ||
|
||
# strips out all outputs from notebooks. | ||
- repo: https://github.com/kynan/nbstripout | ||
rev: 0.3.9 | ||
rev: 0.6.1 | ||
hooks: | ||
- id: nbstripout | ||
files: ".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
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
Oops, something went wrong.