pydev-guide / pyrepo-copier

Template for creating a new python repository
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

"error: `omiting` should be `omitting`" during pre-commit #25

Closed dmichalak closed 6 months ago

dmichalak commented 6 months ago

I tested this with all default settings and naming. Running git commit -m "chore: update pre-commit" led to this error:

[INFO] Initializing environment for https://github.com/abravalheri/validate-pyproject.
[INFO] Initializing environment for https://github.com/abravalheri/validate-pyproject:.[all].
[INFO] Initializing environment for https://github.com/crate-ci/typos.
[INFO] Initializing environment for https://github.com/charliermarsh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Installing environment for https://github.com/abravalheri/validate-pyproject.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/crate-ci/typos.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/charliermarsh/ruff-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Validate pyproject.toml..............................(no files to check)Skipped
typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `omiting` should be `omitting`
  --> .pre-commit-config.yaml:20:36
   |
20 |         args: [--force-exclude]  # omiting --write-changes
   |                                    ^^^^^^^
   |

ruff.................................................(no files to check)Skipped
ruff-format..........................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped
tlambert03 commented 6 months ago

yes thanks! this annoyed me too :). will fix

tlambert03 commented 6 months ago

fixed. thanks