Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = C901, E203, E266, E501, W503, B905
ignore = C901, E203, E266, E501, E704, W503, B905
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4,B9
19 changes: 10 additions & 9 deletions .github/workflows/test-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@ name: Test Notebooks

on: [push, pull_request]

jobs:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
test-notebooks:

if:
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

name: Test the notebooks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v3
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
miniforge-variant: Miniforge3
miniforge-version: latest
auto-update-conda: true
python-version: 3.13

- name: Install nox
run: pip install nox
Expand All @@ -29,4 +30,4 @@ jobs:
env:
MPLBACKEND: "Agg"
OPENTOPOGRAPHY_API_KEY: ${{ secrets.OPENTOPOGRAPHY_API_KEY }}
run: nox -s test-notebooks --python "3.11"
run: nox -s test-notebooks --python "3.13"
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 25.1.0
hooks:
- id: black
name: black
Expand All @@ -23,7 +23,7 @@ repos:
additional_dependencies: [".[jupyter]"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
rev: 1.9.1
hooks:
- id: nbqa-pyupgrade
args: ["--py38-plus"]
Expand All @@ -42,7 +42,7 @@ repos:
)

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.2.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -51,20 +51,20 @@ repos:
- flake8-simplify

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.8.1
hooks:
- id: nbstripout
description: Strip output from jupyter notebooks
args: [--drop-empty-cells]

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 6.0.1
hooks:
- id: isort
files: \.py$
Expand All @@ -79,7 +79,7 @@ repos:
# - id: hide-solution-cells

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
Expand Down
2 changes: 1 addition & 1 deletion README.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b56d3d13",
"id": "0",
"metadata": {},
"source": [
"![Ivy logo](https://raw.githubusercontent.com/csdms/project/main/assets/CSDMS-logo-color-tagline-hor.png)\n",
Expand Down
2 changes: 1 addition & 1 deletion lessons/landlab/landlab/.opentopography.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e3d13293522b2d54ad499adf8d20159e
demoapikeyot2022
Loading
Loading