Skip to content

Commit

Permalink
Upgrade pre-commit and Black
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 8, 2024
1 parent 095981b commit a629386
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand All @@ -31,13 +31,13 @@ repos:
args: [--strict, --pretty, --show-error-codes]

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

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

Expand Down
1 change: 1 addition & 0 deletions src/humanize/i18n.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Activate, get and deactivate translations."""

from __future__ import annotations

import gettext as gettext_module
Expand Down
1 change: 1 addition & 0 deletions src/humanize/number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Humanizing functions for numbers."""

from __future__ import annotations

import math
Expand Down
1 change: 1 addition & 0 deletions src/humanize/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
These are largely borrowed from Django's `contrib.humanize`.
"""

from __future__ import annotations

import collections.abc
Expand Down
1 change: 1 addition & 0 deletions tests/test_i18n.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Internationalisation tests."""

from __future__ import annotations

import datetime as dt
Expand Down
1 change: 1 addition & 0 deletions tests/test_number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Number tests."""

from __future__ import annotations

import math
Expand Down
1 change: 1 addition & 0 deletions tests/test_time.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for time humanizing."""

from __future__ import annotations

import datetime as dt
Expand Down

0 comments on commit a629386

Please sign in to comment.