Skip to content

Commit

Permalink
Merge pull request #96 from ansible-community/pre-commit-ci-update-co…
Browse files Browse the repository at this point in the history
…nfig

chore: pre-commit autoupdate
  • Loading branch information
webknjaz authored Nov 29, 2023
2 parents f101af9 + 8fba724 commit c0dbfab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
19 changes: 3 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- prettier
- prettier-plugin-toml
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.10.1
hooks:
- id: black
language_version: python3
Expand All @@ -36,7 +36,7 @@ repos:
^docs/conf.py$
)
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -57,7 +57,7 @@ repos:
- flake8-mypy
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.5.1
rev: v1.6.1
hooks:
- id: mypy
alias: mypy-py312
Expand Down Expand Up @@ -98,19 +98,6 @@ repos:
- --txt-report=.tox/.tmp/.mypy/python-3.8
- src/sphinx_ansible_theme/
pass_filenames: false
- id: mypy
alias: mypy-py36
name: MyPy, for Python 3.6
additional_dependencies:
- lxml # requirement of `--txt-report`
- Sphinx >= 3.1.2, < 6
- types-setuptools
args:
- --namespace-packages
- --python-version=3.6
- --txt-report=.tox/.tmp/.mypy/python-3.6
- src/sphinx_ansible_theme/
pass_filenames: false
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ imagesize==1.4.1
importlib-metadata==5.1.0
jinja2==3.1.2
markupsafe==2.1.1
packaging==21.3
packaging==23.2
pygments==2.13.0
pyparsing==3.0.9
pytz==2022.6
requests==2.28.1
snowballstemmer==2.2.0
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setenv =
description = Runs all linting tasks
commands =
# to run a single linter you can do "pre-commit run flake8"
python -m pre_commit run {posargs:--all}
python -m pre_commit run {posargs:--all --show-diff-on-failure}
deps = pre-commit>=2.20
extras =
skip_install = true
Expand Down

0 comments on commit c0dbfab

Please sign in to comment.