diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d2409d..1acf869 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,23 +2,23 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.4.2 hooks: - id: black exclude: ^pdm/_vendor - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.10.1 hooks: - id: mypy args: [cfonts] diff --git a/cfonts/__init__.py b/cfonts/__init__.py index fab4c3a..ec00286 100644 --- a/cfonts/__init__.py +++ b/cfonts/__init__.py @@ -6,6 +6,7 @@ :license: GNU GPLv2 :author: Frost Ming """ + __all__ = ["say", "render"] from .core import render, say diff --git a/cfonts/__version__.py b/cfonts/__version__.py index c506c51..508102b 100644 --- a/cfonts/__version__.py +++ b/cfonts/__version__.py @@ -6,4 +6,5 @@ :license: GNU GPLv2 :author: Frost Ming """ + __version__ = "1.5.2" diff --git a/cfonts/cli.py b/cfonts/cli.py index dd62adb..561d6b7 100644 --- a/cfonts/cli.py +++ b/cfonts/cli.py @@ -6,6 +6,7 @@ :license: GNU GPLv2 :author: Frost Ming """ + import argparse import sys from typing import List, Optional diff --git a/cfonts/colors.py b/cfonts/colors.py index d9e5b39..8a7cc4d 100644 --- a/cfonts/colors.py +++ b/cfonts/colors.py @@ -1,6 +1,7 @@ """ Utility functions for handling terminal colors """ + import os from typing import Iterable, List, Mapping, NamedTuple, Tuple, no_type_check diff --git a/cfonts/consts.py b/cfonts/consts.py index bcbfcd6..02f0428 100644 --- a/cfonts/consts.py +++ b/cfonts/consts.py @@ -6,6 +6,7 @@ :license: GNU GPLv2 :author: Frost Ming """ + import enum from shutil import get_terminal_size from typing import Mapping, Tuple diff --git a/cfonts/core.py b/cfonts/core.py index 801def3..f3bd76b 100644 --- a/cfonts/core.py +++ b/cfonts/core.py @@ -6,6 +6,7 @@ :license: GNU GPLv2 :author: Frost Ming """ + import argparse import json import pkgutil diff --git a/tests/conftest.py b/tests/conftest.py index 482721d..42c669c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """pytest configuration""" + import re import pytest