From 30bbbdbd429bcd10099f7a6d9f3583e20b378b95 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:48:31 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#241) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] Co-authored-by: Philipp A --- .pre-commit-config.yaml | 2 +- .../.pre-commit-config.yaml | 2 +- {{cookiecutter.project_name}}/docs/template_usage.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1fc3afa..55d9a8a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/{{cookiecutter.project_name}}/.pre-commit-config.yaml b/{{cookiecutter.project_name}}/.pre-commit-config.yaml index 6d0aa48d..d69018c2 100644 --- a/{{cookiecutter.project_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_name}}/.pre-commit-config.yaml @@ -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] diff --git a/{{cookiecutter.project_name}}/docs/template_usage.md b/{{cookiecutter.project_name}}/docs/template_usage.md index cf1db2d0..e6db1e69 100644 --- a/{{cookiecutter.project_name}}/docs/template_usage.md +++ b/{{cookiecutter.project_name}}/docs/template_usage.md @@ -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" ``` ::: @@ -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 - ... + # ... ] ``` @@ -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", - ... + # ... ] ```