Skip to content

Commit

Permalink
chore: pre-commit.ci autoupdate (#117)
Browse files Browse the repository at this point in the history
* chore: pre-commit.ci autoupdate

updates:
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/shellcheck-py/shellcheck-py: v0.9.0.6 → v0.10.0.1](shellcheck-py/shellcheck-py@v0.9.0.6...v0.10.0.1)
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.5](astral-sh/ruff-pre-commit@v0.2.2...v0.3.5)
- [github.com/PyCQA/bandit: 1.7.7 → 1.7.8](PyCQA/bandit@1.7.7...1.7.8)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.5](astral-sh/ruff-pre-commit@v0.2.2...v0.3.5)
- [github.com/python-poetry/poetry: 1.7.0 → 1.8.0](python-poetry/poetry@1.7.0...1.8.0)
- [github.com/errata-ai/vale: v3.1.0 → v3.3.1](errata-ai/vale@v3.1.0...v3.3.1)

* style: auto-fixes from pre-commit.ci

Configured by .pre-commit-config.yaml
Checks run by https://pre-commit.ci

* chore: don't upgrade to alpha version of prettier pre-commit

* style: reorder-python-imports only manually

This prevents a battle between reprder-python-imports and
Black style (here as implemented in ruff) about blank line
after file docstring.

* ci: skip gitlint-ci for pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alexander Dupuy <33216+dupuy@users.noreply.github.com>
Co-authored-by: Alexander Dupuy <alex@dupuy.us>
  • Loading branch information
3 people committed May 3, 2024
1 parent cbf3cd7 commit a373bf2
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 23 deletions.
16 changes: 9 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ repos:

# Shell
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
Expand All @@ -166,7 +166,7 @@ repos:

# Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.5
hooks:
# Run the linter.
- id: ruff
Expand All @@ -185,6 +185,7 @@ repos:
- --remove-import=from typing import Set
- --remove-import=from typing import Tuple
files: ^(?!setup.py$).*\.py$
stages: [manual] # prevent whitespace battle with ruff --format (Black)
- repo: https://github.com/PyCQA/prospector
rev: v1.10.3
hooks:
Expand All @@ -201,13 +202,13 @@ repos:
# - --tool=pylint # comment out if you get "pylint: astroid-error ..."
- --tool=dodgy
- repo: https://github.com/PyCQA/bandit
rev: 1.7.7
rev: 1.7.8
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ['bandit[toml]']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -228,13 +229,13 @@ repos:
hooks:
- id: dead
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.5
hooks:
# Run the formatter.
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
# see https://python-poetry.org/docs/master/pre-commit-hooks/#faq
rev: 1.7.0
rev: 1.8.0
hooks:
- id: poetry-lock
- id: poetry-check
Expand Down Expand Up @@ -287,7 +288,7 @@ repos:
exclude: tests/

- repo: https://github.com/errata-ai/vale
rev: v3.1.0
rev: v3.3.1
hooks:
- id: vale
exclude: LICENSE|humans\.txt|requirements.*|styles/
Expand Down Expand Up @@ -374,5 +375,6 @@ ci:
autoupdate_commit_msg: 'chore: pre-commit.ci autoupdate'
autoupdate_schedule: monthly
skip:
- gitlint-ci
- markdown-link-check
- poetry-lock
33 changes: 17 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions reliabot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Maintain Dependabot configuration."""

from __future__ import annotations
1 change: 1 addition & 0 deletions reliabot/reliabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
>>> if os.path.islink("testdir") and os.readlink("testdir") == "../testdir/":
... _ = isdir(".git") or os.mkdir(".git")
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions tidy-md-refs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
https://web.archive.org/web/20120920012828/http://www.leancrew.com/all-this/
WayBack machine archive link.
"""

from __future__ import annotations

import argparse
Expand Down

0 comments on commit a373bf2

Please sign in to comment.