Skip to content

Commit

Permalink
Add pre-commit to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Oct 20, 2023
1 parent a662f5a commit 413c257
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ concurrency:
cancel-in-progress: true

jobs:
pre_commit:
name: Run pre-commit
runs-on: 'ubuntu-latest'
steps:
- uses: holoviz-dev/holoviz_tasks/pre-commit@v0.1a17

test_suite:
name: Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }}
needs: [pre_commit]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -72,6 +79,7 @@ jobs:
test_pip:
name: Pip tests on ${{ matrix.os }} with Python ${{ matrix.python-version }}
needs: [pre_commit]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions datashader/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def area(self, source, x, y, agg=None, axis=0, y_stack=None):
Aggregate two area regions across all rows. The first starting
with coordinates df.A1 by df.B1 and the second with coordinates
df.A2 by df.B2. Both regions are filled to the y=0 line
>>> agg = cvs.area(df, x=['A1', 'A2'], y=['B1', 'B2'],
>>> agg = cvs.area(df, x=['A1', 'A2'], y=['B1', 'B2'], # doctest: +SKIP
agg=ds.count(), axis=0)
... tf.shade(agg)
Expand All @@ -536,7 +536,7 @@ def area(self, source, x, y, agg=None, axis=0, y_stack=None):
Aggregate 6 length-2 area regions, one per row, where the ith region
starts with coordinates [df.A1[i], df.A2[i]] by [df.B1[i], df.B2[i]]
and is filled to the y=0 line
>>> agg = cvs.area(df, x=['A1', 'A2'], y=['B1', 'B2'],
>>> agg = cvs.area(df, x=['A1', 'A2'], y=['B1', 'B2'], # doctest: +SKIP
agg=ds.count(), axis=1)
... tf.shade(agg)
Expand Down

0 comments on commit 413c257

Please sign in to comment.