Skip to content

Commit 7a1d420

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f56e738 commit 7a1d420

File tree

4 files changed

+74
-74
lines changed

4 files changed

+74
-74
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Ecosystem packages are independent software libraries that interact with scverse
88

99
Please check out the
1010

11-
- [example repo](https://github.com/scverse/cookiecutter-scverse-instance) and the
12-
- [example documentation](https://cookiecutter-scverse-instance.readthedocs.io/en/latest/)
11+
- [example repo](https://github.com/scverse/cookiecutter-scverse-instance) and the
12+
- [example documentation](https://cookiecutter-scverse-instance.readthedocs.io/en/latest/)
1313

1414
that are automatically generated and kept in sync with this template.
1515

@@ -32,14 +32,14 @@ Please consider making a tax-deductible [donation](https://numfocus.org/donate-t
3232

3333
## Features
3434

35-
- automated testing with [pytest][]
36-
- continuous integration using GitHub actions.
37-
- documentation hosted by [readthedocs][]
38-
- coverage tests with [codecov][]
39-
- [pre-commit][] checks for code style and consistency
40-
- tutorials with [myst-nb][] and jupyter notebooks
41-
- issue templates for better bug reports and feature requests
42-
- [bump2version][] for managing releases
35+
- automated testing with [pytest][]
36+
- continuous integration using GitHub actions.
37+
- documentation hosted by [readthedocs][]
38+
- coverage tests with [codecov][]
39+
- [pre-commit][] checks for code style and consistency
40+
- tutorials with [myst-nb][] and jupyter notebooks
41+
- issue templates for better bug reports and feature requests
42+
- [bump2version][] for managing releases
4343

4444
## Getting started
4545

@@ -90,9 +90,9 @@ Further instructions on using this template can be found in the [dev docs includ
9090

9191
We expect developers of scverse ecosystem packages to
9292

93-
- [write unit tests][write-tests]
94-
- [provide documentation][write-docs], including tutorials where applicable
95-
- support users through github and the [scverse discourse][]
93+
- [write unit tests][write-tests]
94+
- [provide documentation][write-docs], including tutorials where applicable
95+
- support users through github and the [scverse discourse][]
9696

9797
## Changelog
9898

{{cookiecutter.project_name}}/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ and this project adheres to [Semantic Versioning][].
1212

1313
### Added
1414

15-
- Basic tool, preprocessing and plotting functions
15+
- Basic tool, preprocessing and plotting functions

{{cookiecutter.project_name}}/docs/contributing.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ This will automatically create a git tag and trigger a Github workflow that crea
158158
Please write documentation for new or changed features and use-cases.
159159
This project uses [sphinx][] with the following features:
160160

161-
- The [myst][] extension allows to write documentation in markdown/Markedly Structured Text
162-
- [Numpy-style docstrings][numpydoc] (through the [napoloen][numpydoc-napoleon] extension).
163-
- Jupyter notebooks as tutorials through [myst-nb][] (See [Tutorials with myst-nb](#tutorials-with-myst-nb-and-jupyter-notebooks))
164-
- [sphinx-autodoc-typehints][], to automatically reference annotated input and output types
165-
- Citations (like {cite:p}`Virshup_2023`) can be included with [sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/)
161+
- The [myst][] extension allows to write documentation in markdown/Markedly Structured Text
162+
- [Numpy-style docstrings][numpydoc] (through the [napoloen][numpydoc-napoleon] extension).
163+
- Jupyter notebooks as tutorials through [myst-nb][] (See [Tutorials with myst-nb](#tutorials-with-myst-nb-and-jupyter-notebooks))
164+
- [sphinx-autodoc-typehints][], to automatically reference annotated input and output types
165+
- Citations (like {cite:p}`Virshup_2023`) can be included with [sphinxcontrib-bibtex](https://sphinxcontrib-bibtex.readthedocs.io/)
166166

167167
See scanpy’s {doc}`scanpy:dev/documentation` for more information on how to write your own.
168168

@@ -186,10 +186,10 @@ please check out [this feature request][issue-render-notebooks] in the `cookiecu
186186

187187
#### Hints
188188

189-
- If you refer to objects from other packages, please add an entry to `intersphinx_mapping` in `docs/conf.py`.
190-
Only if you do so can sphinx automatically create a link to the external documentation.
191-
- If building the documentation fails because of a missing link that is outside your control,
192-
you can add an entry to the `nitpick_ignore` list in `docs/conf.py`
189+
- If you refer to objects from other packages, please add an entry to `intersphinx_mapping` in `docs/conf.py`.
190+
Only if you do so can sphinx automatically create a link to the external documentation.
191+
- If building the documentation fails because of a missing link that is outside your control,
192+
you can add an entry to the `nitpick_ignore` list in `docs/conf.py`
193193

194194
(docs-building)=
195195

{{cookiecutter.project_name}}/docs/template_usage.md

+51-51
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ We recommend using [readthedocs.org][] (RTD) to build and host the documentation
169169
To enable readthedocs, head over to [their website][readthedocs.org] and sign in with your GitHub account.
170170
On the RTD dashboard choose "Import a Project" and follow the instructions to add your repository.
171171

172-
- Make sure to choose the correct name of the default branch.
173-
On GitHub, the name of the default branch should be `main` (it has recently changed from `master` to `main`).
174-
- We recommend enabling documentation builds for pull requests (PRs).
175-
This ensures that a PR doesn't introduce changes that break the documentation.
176-
To do so, got to `Admin -> Advanced Settings`, check the `Build pull requests for this projects` option, and click `Save`.
177-
For more information, please refer to the [official RTD documentation][rtd-prs].
178-
- If you find the RTD builds are failing, you can disable the `fail_on_warning` option in `.readthedocs.yaml`.
172+
- Make sure to choose the correct name of the default branch.
173+
On GitHub, the name of the default branch should be `main` (it has recently changed from `master` to `main`).
174+
- We recommend enabling documentation builds for pull requests (PRs).
175+
This ensures that a PR doesn't introduce changes that break the documentation.
176+
To do so, got to `Admin -> Advanced Settings`, check the `Build pull requests for this projects` option, and click `Save`.
177+
For more information, please refer to the [official RTD documentation][rtd-prs].
178+
- If you find the RTD builds are failing, you can disable the `fail_on_warning` option in `.readthedocs.yaml`.
179179
180180
If your project is private, there are ways to enable docs rendering on [readthedocs.org][] but it is more cumbersome and requires a different subscription for read the docs.
181181
See a guide [here](https://docs.readthedocs.io/en/stable/guides/importing-private-repositories.html).
@@ -260,44 +260,44 @@ Once authorized, pre-commit.ci should automatically be activated.
260260

261261
The following pre-commit hooks are for code style and format:
262262

263-
- [prettier](https://prettier.io/docs/en/index.html):
264-
standard code formatter for non-Python files (e.g. YAML).
265-
- [ruff][] formatting (`ruff-format`)
266-
- [ruff][] based checks:
267-
- [isort](https://beta.ruff.rs/docs/rules/#isort-i) (rule category: `I`):
268-
sort module imports into sections and types.
269-
- [pydocstyle](https://beta.ruff.rs/docs/rules/#pydocstyle-d) (rule category: `D`):
270-
pydocstyle extension of flake8.
271-
- [flake8-tidy-imports](https://beta.ruff.rs/docs/rules/#flake8-tidy-imports-tid) (rule category: `TID`):
272-
tidy module imports.
273-
- [flake8-comprehensions](https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4) (rule category: `C4`):
274-
write better list/set/dict comprehensions.
275-
- [pyupgrade](https://beta.ruff.rs/docs/rules/#pyupgrade-up) (rule category: `UP`):
276-
upgrade syntax for newer versions of the language.
263+
- [prettier](https://prettier.io/docs/en/index.html):
264+
standard code formatter for non-Python files (e.g. YAML).
265+
- [ruff][] formatting (`ruff-format`)
266+
- [ruff][] based checks:
267+
- [isort](https://beta.ruff.rs/docs/rules/#isort-i) (rule category: `I`):
268+
sort module imports into sections and types.
269+
- [pydocstyle](https://beta.ruff.rs/docs/rules/#pydocstyle-d) (rule category: `D`):
270+
pydocstyle extension of flake8.
271+
- [flake8-tidy-imports](https://beta.ruff.rs/docs/rules/#flake8-tidy-imports-tid) (rule category: `TID`):
272+
tidy module imports.
273+
- [flake8-comprehensions](https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4) (rule category: `C4`):
274+
write better list/set/dict comprehensions.
275+
- [pyupgrade](https://beta.ruff.rs/docs/rules/#pyupgrade-up) (rule category: `UP`):
276+
upgrade syntax for newer versions of the language.
277277

278278
The following pre-commit hooks are for errors and inconsistencies:
279279

280-
- [pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks): generic pre-commit hooks for text files.
281-
- **detect-private-key**: checks for the existence of private keys.
282-
- **check-ast**: check whether files parse as valid python.
283-
- **end-of-file-fixer**: check files end in a newline and only a newline.
284-
- **mixed-line-ending**: checks mixed line ending.
285-
- **trailing-whitespace**: trims trailing whitespace.
286-
- **check-case-conflict**: check files that would conflict with case-insensitive file systems.
287-
- **forbid-to-commit**: Make sure that `*.rej` files cannot be commited.
288-
These files are created by the [automated template sync](#automated-template-sync)
289-
if there's a merge conflict and need to be addressed manually.
290-
- [ruff][] based checks:
291-
- [pyflakes](https://beta.ruff.rs/docs/rules/#pyflakes-f) (rule category: `F`):
292-
various checks for errors.
293-
- [pycodestyle](https://beta.ruff.rs/docs/rules/#pycodestyle-e-w) (rule category: `E`, `W`):
294-
various checks for errors.
295-
- [flake8-bugbear](https://beta.ruff.rs/docs/rules/#flake8-bugbear-b) (rule category: `B`):
296-
find possible bugs and design issues in program.
297-
- [flake8-blind-except](https://beta.ruff.rs/docs/rules/#flake8-blind-except-ble) (rule category: `BLE`):
298-
checks for blind, catch-all `except` statements.
299-
- [Ruff-specific rules](https://beta.ruff.rs/docs/rules/#ruff-specific-rules-ruf) (rule category: `RUF`):
300-
- `RUF100`: remove unneccesary `# noqa` comments ()
280+
- [pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks): generic pre-commit hooks for text files.
281+
- **detect-private-key**: checks for the existence of private keys.
282+
- **check-ast**: check whether files parse as valid python.
283+
- **end-of-file-fixer**: check files end in a newline and only a newline.
284+
- **mixed-line-ending**: checks mixed line ending.
285+
- **trailing-whitespace**: trims trailing whitespace.
286+
- **check-case-conflict**: check files that would conflict with case-insensitive file systems.
287+
- **forbid-to-commit**: Make sure that `*.rej` files cannot be commited.
288+
These files are created by the [automated template sync](#automated-template-sync)
289+
if there's a merge conflict and need to be addressed manually.
290+
- [ruff][] based checks:
291+
- [pyflakes](https://beta.ruff.rs/docs/rules/#pyflakes-f) (rule category: `F`):
292+
various checks for errors.
293+
- [pycodestyle](https://beta.ruff.rs/docs/rules/#pycodestyle-e-w) (rule category: `E`, `W`):
294+
various checks for errors.
295+
- [flake8-bugbear](https://beta.ruff.rs/docs/rules/#flake8-bugbear-b) (rule category: `B`):
296+
find possible bugs and design issues in program.
297+
- [flake8-blind-except](https://beta.ruff.rs/docs/rules/#flake8-blind-except-ble) (rule category: `BLE`):
298+
checks for blind, catch-all `except` statements.
299+
- [Ruff-specific rules](https://beta.ruff.rs/docs/rules/#ruff-specific-rules-ruf) (rule category: `RUF`):
300+
- `RUF100`: remove unneccesary `# noqa` comments ()
301301
302302
#### How to add or remove pre-commit checks
303303
@@ -374,9 +374,9 @@ add it to Ruff’s [`external = [...]`][ruff-external] setting to prevent `RUF10
374374
Scverse ecosystem packages should operate on [AnnData][] and/or [MuData][] data structures and typically use an API
375375
as originally [introduced by scanpy][scanpy-api] with the following submodules:
376376

377-
- `pp` for preprocessing
378-
- `tl` for tools (that, compared to `pp` generate interpretable output, often associated with a corresponding plotting function)
379-
- `pl` for plotting functions
377+
- `pp` for preprocessing
378+
- `tl` for tools (that, compared to `pp` generate interpretable output, often associated with a corresponding plotting function)
379+
- `pl` for plotting functions
380380

381381
You may add additional submodules as appropriate.
382382
While we encourage to follow a scanpy-like API for ecosystem packages,
@@ -440,12 +440,12 @@ The pull request can only be merged after all `*.rej` files have been removed.
440440
:::{tip}
441441
The following hints may be useful to work with the template sync:
442442
443-
- GitHub automatically disables scheduled actions if there has been not activity to the repository for 60 days.
444-
You can re-enable or manually trigger the sync by navigating to `Actions` -> `Sync Template` in your GitHub repository.
445-
- If you want to ignore certain files from the template update,
446-
you can add them to the `[tool.cruft]` section in the `pyproject.toml` file in the root of your repository.
447-
More details are described in the [cruft documentation][cruft-update-project].
448-
- To disable the sync entirely, simply remove the file `.github/workflows/sync.yaml`.
443+
- GitHub automatically disables scheduled actions if there has been not activity to the repository for 60 days.
444+
You can re-enable or manually trigger the sync by navigating to `Actions` -> `Sync Template` in your GitHub repository.
445+
- If you want to ignore certain files from the template update,
446+
you can add them to the `[tool.cruft]` section in the `pyproject.toml` file in the root of your repository.
447+
More details are described in the [cruft documentation][cruft-update-project].
448+
- To disable the sync entirely, simply remove the file `.github/workflows/sync.yaml`.
449449
450450
:::
451451

0 commit comments

Comments
 (0)