Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 16, 2023
2 parents 2643d37 + e21b1cd commit ee08216
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .pre-commit-config.yaml
@@ -1,22 +1,23 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [--add-import=from __future__ import annotations]

- repo: https://github.com/PyCQA/autoflake
rev: v2.1.1
rev: v2.2.0
hooks:
- id: autoflake
name: autoflake
Expand All @@ -30,10 +31,11 @@ repos:
files: \.py$

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-2020, flake8-errmsg, flake8-implicit-str-concat]
additional_dependencies:
[flake8-2020, flake8-errmsg, flake8-implicit-str-concat]

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
Expand Down Expand Up @@ -61,24 +63,25 @@ repos:
files: "src/"

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.5.0
hooks:
- id: mypy
additional_dependencies: [pytest, types-freezegun, types-setuptools]
args: [--strict]
args: [--strict, --pretty, --show-error-codes]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 0.10.0
rev: 0.13.1
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.13
hooks:
- id: validate-pyproject

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.0
rev: 1.3.1
hooks:
- id: tox-ini-fmt

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -22,7 +22,6 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
2 changes: 2 additions & 0 deletions src/humanize/__init__.py
@@ -1,5 +1,7 @@
"""Main package for humanize."""

from __future__ import annotations

import importlib.metadata

from humanize.filesize import naturalsize
Expand Down
2 changes: 2 additions & 0 deletions tests/test_i18n.py
@@ -1,4 +1,6 @@
"""Internationalisation tests."""
from __future__ import annotations

import datetime as dt
import importlib

Expand Down

0 comments on commit ee08216

Please sign in to comment.