Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/mirrors-prettier
# keep it before yamllint
rev: v3.0.0-alpha.6
rev: v4.0.0-alpha.8
hooks:
- id: prettier
always_run: true
Expand All @@ -39,11 +39,11 @@ repos:
# args: [--relative, --no-progress, --no-summary]
# name: Spell check with cspell
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.21.0
rev: 0.29.2
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand All @@ -68,30 +68,30 @@ repos:
# additional_dependencies:
# - tomli
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
rev: v1.35.1
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args:
# https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082
- --filter-files
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.8.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8.git
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
language_version: python3
Expand All @@ -103,20 +103,20 @@ repos:
- flake8-future-annotations>=0.0.3
- repo: https://github.com/asottile/pyupgrade
# keep it after flake8
rev: v3.3.1
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
rev: v1.11.2
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
args: [--strict]
additional_dependencies:
- pytest
- repo: https://github.com/pycqa/pylint
rev: v2.16.4
rev: v3.2.7
hooks:
- id: pylint
args:
Expand All @@ -125,7 +125,7 @@ repos:
- ansible-core>=2.14.0
- pytest
- repo: https://github.com/jazzband/pip-tools
rev: 6.12.3
rev: 7.4.1
hooks:
- id: pip-compile
name: lock
Expand Down
1 change: 1 addition & 0 deletions src/pia/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PIA - Package Installer for Ansible."""

try:
from pia._version import version as __version__
except ImportError: # pragma: no branch
Expand Down
1 change: 1 addition & 0 deletions src/pia/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PIA command line."""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions src/pia/proc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to work with processes."""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions test/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for PIA."""

import pytest

from pia.__main__ import main
Expand Down
Loading