Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hadialqattan/pycln
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.4.0
Choose a base ref
...
head repository: hadialqattan/pycln
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.5.0
Choose a head ref
  • 12 commits
  • 38 files changed
  • 4 contributors

Commits on Sep 24, 2024

  1. Recommend installation with pipx rather than pip (#180)

    * Recommend installation with pipx rather than pip
    
    This will install pipx in its own virtual environment
    
    * update: pipx url
    
    * fix: macos-14 doesn't has py<3.10
    
    * fix: unknown system error on macos-13 runner
    
    ---------
    
    Co-authored-by: Hadi Alqattan <[email protected]>
    klieret and hadialqattan authored Sep 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dfaf7b7 View commit details
  2. Bump actions/setup-python from 4 to 5 (#227)

    Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-python
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0ab528c View commit details
  3. Bump idna from 3.4 to 3.7 (#232)

    Bumps [idna](https://github.com/kjd/idna) from 3.4 to 3.7.
    - [Release notes](https://github.com/kjd/idna/releases)
    - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
    - [Commits](kjd/idna@v3.4...v3.7)
    
    ---
    updated-dependencies:
    - dependency-name: idna
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d167fb2 View commit details
  4. Bump certifi from 2023.7.22 to 2024.7.4 (#233)

    Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.7.22 to 2024.7.4.
    - [Commits](certifi/python-certifi@2023.07.22...2024.07.04)
    
    ---
    updated-dependencies:
    - dependency-name: certifi
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    311fbde View commit details
  5. Update: pyproject file to a newer poetry syntax. (#234)

    * update: pyproject file to a newer poetry syntax
    
    * update: insclude dev deps in ci
    
    * fix: add missing pre-commits configs
    hadialqattan authored Sep 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d0aeb62 View commit details

Commits on Jan 6, 2025

  1. fix: pre-commits v4 language:python_venv not allowed

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    42785a0 View commit details
  2. change: drop python 3.7

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    efe2e73 View commit details
  3. change: drop python 3.7

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    76db777 View commit details
  4. change: drop python 3.7

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    830f4cf View commit details
  5. change: drop python 3.7

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    0f158e7 View commit details
  6. Use importlib.metadata instead of reading pyproject.toml in init (#250)

    * Use importlib.metadata instead of reading pyproject.toml as it may not exist
    
    * add: change log
    
    * fix: missing pre-commit run
    
    * fix: stop shipping pyproject.toml
    
    * fix(ci): also install pycln to read the metadata
    
    * change: PYPROJECT_PATH is only needed in testing for now
    
    ---------
    
    Co-authored-by: Hadi Alqattan <[email protected]>
    or150 and hadialqattan authored Jan 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4841127 View commit details
  7. Bump v2.5.0

    hadialqattan committed Jan 6, 2025
    Copy the full SHA
    14197bf View commit details
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: pre-commit/action@v3.0.0
@@ -36,14 +36,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.12"]
os: [ubuntu-20.04, windows-latest, macos-13]
python-version: ["3.8", "3.9", "3.10", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
@@ -52,7 +52,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry install --no-root
python -m poetry install --with=dev
- name: Test with pytest by poetry
run: |
@@ -63,3 +63,4 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ matrix.os }}, ${{ matrix.python-version }}
version: v0.7.3
4 changes: 2 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -13,13 +13,13 @@ 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

- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
51 changes: 27 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
exclude: "vendor/"

repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.3.0 # Possible releases: https://github.com/hadialqattan/pycln/releases
hooks:
- id: pycln
args: [--config=pyproject.toml]
# - repo: https://github.com/hadialqattan/pycln
# rev: v2.4.0 # Possible releases: https://github.com/hadialqattan/pycln/releases
# hooks:
# - id: pycln
# args: [--config=pyproject.toml]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
@@ -26,51 +26,54 @@ repos:
- id: check-executables-have-shebangs

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.1
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]

- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]

- repo: https://github.com/pycqa/isort
rev: 5.11.5
rev: 5.13.2
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]

- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place]
# - repo: https://github.com/myint/docformatter
# rev: v1.4
# hooks:
# - id: docformatter
# args: [--in-place]

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 24.10.0
hooks:
- id: black
args: [--config=pyproject.toml]

- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
rev: "7.1.1"
hooks:
- id: flake8
additional_dependencies: [pep8-naming]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782 # Do not update.
hooks:
- id: mypy
exclude: tests/data/
args: [--config-file=pyproject.toml]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.14.1
# hooks:
# - id: mypy
# additional_dependencies:
# - types-requests==2.32.0.20241016
# - types-PyYAML==6.0.12.20241230
# exclude: tests/data/
# args: [--config-file=pyproject.toml]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a4
rev: v3.0.0a5
hooks:
- id: pylint
args: [--rcfile=.pylintrc]
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -47,11 +47,13 @@

### Installation

Pycln requires Python 3.7+ and can be easily installed using the most common Python
packaging tools. We recommend installing the latest stable release from PyPI with pip:
Pycln requires Python 3.6+ and can be easily installed using the most common Python
packaging tools. We recommend installing the latest stable release from PyPI with
[`pipx`](https://pipx.pypa.io/)

```bash
$ pip install pycln
$ pip install pipx
$ pipx install pycln
```

### Usage
10 changes: 10 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,16 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## [2.5.0] - 2025-01-06

### Fixed

- [Reading `pyproject.toml` causes missing `pyproject.toml` error by @or150](https://github.com/hadialqattan/pycln/pull/250)

## Changed

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

## [2.4.0] - 2023-11-14

## Added
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -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
@@ -1280,7 +1280,7 @@ finally:

```yaml
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0 # Possible releases: https://github.com/hadialqattan/pycln/releases
rev: v2.5.0 # Possible releases: https://github.com/hadialqattan/pycln/releases
hooks:
- id: pycln
args: [--config=pyproject.toml]
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

<!-- Title & body -->

# Pycln <small>2.4.0</small>
# Pycln <small>2.5.0</small>

> A formatter for finding and removing unused import statements.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Loading