Skip to content

Commit

Permalink
🔥 chore: drop python 3.8 support (#48)
Browse files Browse the repository at this point in the history
* 🔥 chore: drop python 3.8 support

* 👷 ci: remove 3.8 from ci workflow
  • Loading branch information
SigureMo authored Oct 13, 2024
1 parent 40307db commit 6e4c90e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Only run linter and formatter on minimum supported Python version
python-version: ["3.8"]
python-version: ["3.9"]
architecture: ["x64"]
name: lint and fmt - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
architecture: ["x64"]
name: unittest - Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
steps:
Expand Down
12 changes: 0 additions & 12 deletions dochooks/_compat.py

This file was deleted.

3 changes: 1 addition & 2 deletions dochooks/insert_whitespace_between_cn_and_en_char/check.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import annotations

import argparse
from collections.abc import Iterable
from typing import Sequence
from collections.abc import Iterable, Sequence

from dochooks import __version__

Expand Down
3 changes: 1 addition & 2 deletions dochooks/insert_whitespace_between_cn_and_en_char/format.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import annotations

import argparse
from collections.abc import Iterable
from typing import Sequence
from collections.abc import Iterable, Sequence

from dochooks import __version__

Expand Down
3 changes: 2 additions & 1 deletion dochooks/insert_whitespace_between_cn_and_en_char/regex.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

import re
from typing import Final, Pattern
from re import Pattern
from typing import Final

REGEX_CN_CHAR_STR: Final[str] = r"[\u4e00-\u9fa5]"
REGEX_EN_CHAR_STR: Final[str] = r"[a-zA-Z0-9]"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "dochooks"
version = "0.5.0"
description = ""
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
authors = [{ name = "Nyakku Shigure", email = "[email protected]" }]
keywords = []
license = { text = "MIT" }
Expand Down Expand Up @@ -44,12 +44,12 @@ dev-dependencies = [

[tool.pyright]
include = ["dochooks", "tests"]
pythonVersion = "3.8"
pythonVersion = "3.9"
typeCheckingMode = "strict"

[tool.ruff]
line-length = 120
target-version = "py38"
target-version = "py39"

[tool.ruff.lint]
select = [
Expand Down
9 changes: 1 addition & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e4c90e

Please sign in to comment.