Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#241)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A <flying-sheep@web.de>
  • Loading branch information
3 people authored Nov 21, 2023
1 parent 3dcfe1f commit 30bbbdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: black
files: ^scripts/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
# https://github.com/jupyterlab/jupyterlab/issues/12675
language_version: "17.9.1"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
12 changes: 6 additions & 6 deletions {{cookiecutter.project_name}}/docs/template_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ You'll notice that the command `git commit` installed a bunch of packages and tr
There is a chance that `git commit -m "first commit"` fails due to the `prettier` pre-commit formatting the file `.cruft.json`. No problem, you have just experienced what pre-commit checks do in action. Just go ahead and re-add the modified file and try to commit again:

```bash
git add -u # update all tracked file
git commit -m "first commit"
git add -u # update all tracked file
git commit -m "first commit"
```

:::
Expand Down Expand Up @@ -247,14 +247,14 @@ Rule categories are selectively enabled by including them under the `select` key

```toml
[tool.ruff]
...
# ...
select = [
"F", # Errors detected by Pyflakes
"E", # Error detected by Pycodestyle
"W", # Warning detected by Pycodestyle
"I", # isort
...
# ...
]
```
Expand All @@ -264,10 +264,10 @@ You can find a long list of checks that this template disables by default sittin
```toml
ignore = [
...
# ...
# __magic__ methods are are often self-explanatory, allow missing docstrings
"D105",
...
# ...
]
```
Expand Down

0 comments on commit 30bbbdb

Please sign in to comment.