diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cdc07006a..af0d748da 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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 diff --git a/datashader/core.py b/datashader/core.py index 8f94b1ed6..b7b9c5cfc 100644 --- a/datashader/core.py +++ b/datashader/core.py @@ -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) @@ -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)