Skip to content

Commit

Permalink
change: drop python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hadialqattan committed Jan 6, 2025
1 parent efe2e73 commit 76db777
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## Changed

- [Drop Python3.7 by @hadialqattan](https://github.com/hadialqattan/pycln)

## [2.4.0] - 2023-11-14

## Added
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

## Latest Release (PYPI)

Pycln requires Python 3.7+ and can be easily installed using the most common Python
Pycln requires Python 3.8+ and can be easily installed using the most common Python
packaging tools. We recommend installing the latest stable release from PyPI with pip:

```bash
Expand Down
14 changes: 7 additions & 7 deletions pycln/utils/pathu.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def yield_sources(
)


@lru_cache()
@lru_cache
def get_standard_lib_paths() -> Set[Path]:
"""Get paths to Python standard library modules.
Expand All @@ -149,7 +149,7 @@ def get_standard_lib_paths() -> Set[Path]:
return paths


@lru_cache()
@lru_cache
def get_standard_lib_names() -> Set[str]:
"""Returns a set of Python standard library modules names.
Expand All @@ -172,7 +172,7 @@ def get_standard_lib_names() -> Set[str]:
return (names - IMPORTS_WITH_SIDE_EFFECTS) | BIN_IMPORTS


@lru_cache()
@lru_cache
def get_third_party_lib_paths() -> Tuple[Set[Path], Set[Path]]:
"""Get paths to third party library modules.
Expand Down Expand Up @@ -202,7 +202,7 @@ def get_third_party_lib_paths() -> Tuple[Set[Path], Set[Path]]:
return paths, pth_paths


@lru_cache()
@lru_cache
def get_local_import_path(path: Path, module: str) -> Optional[Path]:
"""Find the given local module file.py/__init_.py path.
Expand Down Expand Up @@ -248,7 +248,7 @@ def get_local_import_pth_path(pth_paths: Set[Path], module: str) -> Optional[Pat
return None


@lru_cache()
@lru_cache
def get_local_import_from_path(
path: Path, module: str, package: str, level: int
) -> Optional[Path]:
Expand Down Expand Up @@ -365,7 +365,7 @@ def get_module_path(
return None


@lru_cache()
@lru_cache
def get_import_path(path: Path, module: str) -> Optional[Path]:
"""Find the given module file.py/__init__.py path.
Expand All @@ -390,7 +390,7 @@ def get_import_path(path: Path, module: str) -> Optional[Path]:
return get_module_path(paths, module)


@lru_cache()
@lru_cache
def get_import_from_path(
path: Path, module: str, package: str, level: int
) -> Optional[Path]:
Expand Down

0 comments on commit 76db777

Please sign in to comment.