diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8a1ea5..f331b4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.3.5 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.3.0 hooks: - id: black @@ -25,13 +25,13 @@ repos: - id: trailing-whitespace - 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 diff --git a/scripts/despacify.py b/scripts/despacify.py index 7057b89..045f0b2 100644 --- a/scripts/despacify.py +++ b/scripts/despacify.py @@ -1,6 +1,7 @@ """ Replace spaces in emoji keywords with underscores """ + from __future__ import annotations import json diff --git a/src/em_keyboard/__init__.py b/src/em_keyboard/__init__.py index b2353d8..8c8de17 100644 --- a/src/em_keyboard/__init__.py +++ b/src/em_keyboard/__init__.py @@ -12,6 +12,7 @@ automatically added to your clipboard. - ✨ 🍰 ✨ (sparkles shortcake sparkles) """ + from __future__ import annotations import argparse