Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Ruff to 0.11.0 #1890

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jan 15, 2025

  • Run scripts/update_ruff.py to update.
  • Handle this error manually:
    ruff failed
      Cause: Selection of deprecated rules is not allowed when preview is enabled. Remove selection of:
        - S320
    	- UP038
    
  • Handle these warnings manually:
    warning: `TCH001` has been remapped to `TC001`.
    warning: `TCH002` has been remapped to `TC002`.
    warning: `TCH003` has been remapped to `TC003`.
    warning: `TCH004` has been remapped to `TC004`.
    warning: `TCH005` has been remapped to `TC005`.
    warning: `TCH010` has been remapped to `TC010`.
    warning: `TRY302` has been remapped to `TRY203`.
    

@DimitriPapadopoulos
Copy link
Contributor Author

DimitriPapadopoulos commented Jan 15, 2025

The linter target should be py38 but hatch fmt --check clearly uses a more recent target, hence the CI errors.

Any clue how the target Python version is chosen?

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the ruff_0.9.1 branch 2 times, most recently from 2b59862 to 78969b4 Compare January 15, 2025 18:36
@DimitriPapadopoulos DimitriPapadopoulos changed the title Upgrade Ruff to 0.9.1 Upgrade Ruff to 0.9.6 Feb 12, 2025
@DimitriPapadopoulos DimitriPapadopoulos force-pushed the ruff_0.9.1 branch 14 times, most recently from de04d74 to 23df16d Compare February 12, 2025 10:07
@DimitriPapadopoulos DimitriPapadopoulos changed the title Upgrade Ruff to 0.9.6 Upgrade Ruff to 0.9.7 Feb 25, 2025
@DimitriPapadopoulos DimitriPapadopoulos changed the title Upgrade Ruff to 0.9.7 Upgrade Ruff to 0.9.10 Mar 11, 2025
Run `python scripts/update_ruff.py`.
Fixes this ruff failure:
  Cause: Selection of deprecated rules is not allowed when preview is enabled. Remove selection of:
	- S320
	- UP038
warning: `TCH001` has been remapped to `TC001`.
warning: `TCH002` has been remapped to `TC002`.
warning: `TCH003` has been remapped to `TC003`.
warning: `TCH004` has been remapped to `TC004`.
warning: `TCH005` has been remapped to `TC005`.
warning: `TCH010` has been remapped to `TC010`.
warning: `TRY302` has been remapped to `TRY203`.
RUF100 Unused `noqa` directive
@DimitriPapadopoulos DimitriPapadopoulos changed the title Upgrade Ruff to 0.9.10 Upgrade Ruff to 0.11.0 Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant