From 704d4858cb1730dda6ad20bfc3dc91b3d100aa50 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 1 Feb 2024 16:59:09 -0700 Subject: [PATCH] Change references from 'master' to 'main' --- .github/workflows/docs.yml | 2 +- docs/changelog.md | 4 ++-- docs/index.md | 4 ++-- docs/slices.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 73ef4193..0ffef95e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -57,7 +57,7 @@ jobs: # https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key- - name: Deploy uses: JamesIves/github-pages-deploy-action@v4 - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/main' }} with: folder: docs/_build/html ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/docs/changelog.md b/docs/changelog.md index 93d4a555..11f3c2af 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -110,9 +110,9 @@ ### Minor Changes - Added - [CODE_OF_CONDUCT.md](https://github.com/Quansight-Labs/ndindex/blob/master/CODE_OF_CONDUCT.md) + [CODE_OF_CONDUCT.md](https://github.com/Quansight-Labs/ndindex/blob/main/CODE_OF_CONDUCT.md) to the ndindex repository. ndindex follows the [Quansight Code of - Conduct](https://github.com/Quansight/.github/blob/master/CODE_OF_CONDUCT.md). + Conduct](https://github.com/Quansight/.github/blob/main/CODE_OF_CONDUCT.md). - Avoid precomputing all iterated values for slices with large steps in {any}`ChunkSize.as_subchunks()`. diff --git a/docs/index.md b/docs/index.md index 26ec156a..16806dab 100644 --- a/docs/index.md +++ b/docs/index.md @@ -277,7 +277,7 @@ There are two primary types of tests that we employ to verify this: - Hypothesis tests. Hypothesis is a library that can intelligently check a combinatorial search space of inputs. This requires writing hypothesis strategies that can generate all the relevant types of indices (see - [ndindex/tests/helpers.py](https://github.com/Quansight-Labs/ndindex/blob/master/ndindex/tests/helpers.py)). + [ndindex/tests/helpers.py](https://github.com/Quansight-Labs/ndindex/blob/main/ndindex/tests/helpers.py)). For more information on hypothesis, see . All tests have hypothesis tests, even if they are also tested exhaustively. @@ -307,7 +307,7 @@ Benchmarks for ndindex are published ## License -[MIT License](https://github.com/Quansight-Labs/ndindex/blob/master/LICENSE) +[MIT License](https://github.com/Quansight-Labs/ndindex/blob/main/LICENSE) (acknowledgments)= ## Acknowledgments diff --git a/docs/slices.md b/docs/slices.md index 3cb8832d..0c76d625 100644 --- a/docs/slices.md +++ b/docs/slices.md @@ -1693,7 +1693,7 @@ hard to write slice arithmetic. The arithmetic is already hard enough due to the modular nature of `step`, but the discontinuous aspect of `start` and `stop` increases this tenfold. If you are unconvinced of this, take a look at the [source -code](https://github.com/Quansight-labs/ndindex/blob/master/ndindex/slice.py) for +code](https://github.com/Quansight-labs/ndindex/blob/main/ndindex/slice.py) for `ndindex.Slice()`. You will see lots of nested `if` blocks.[^source-footnote] This is because slices have *fundamentally* different definitions if the `start` or `stop` are `None`, negative, or nonnegative. Furthermore, `None` is