From ce19f56d04732b2835e8508139ecca1a07830f60 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:22:19 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.3.0 → 24.4.2](https://github.com/psf/black/compare/23.3.0...24.4.2) - [github.com/PyCQA/flake8: 6.0.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.1.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.10.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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] From cb37550a22ea9adc652394c5481aeac7464c8a3a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 21:22:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cfonts/__init__.py | 1 + cfonts/__version__.py | 1 + cfonts/cli.py | 1 + cfonts/colors.py | 1 + cfonts/consts.py | 1 + cfonts/core.py | 1 + tests/conftest.py | 1 + 7 files changed, 7 insertions(+) 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