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

Migrate linting workflow to ruff check/format #26

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

Conversation

mweinelt
Copy link
Contributor

@mweinelt mweinelt commented Jan 12, 2025

  • Upgrades the linting target version to 3.9, the latest non-eol python
  • Runs the CI under the latest stable, Python 3.13
  • Migrates to ruff check to replace flake8
  • Migrates to ruff format to replace black
  • Ignore Jupyter Notebooks for now
  • Removes the W503/504 checks from ignore, as ruff does not support them

Moved the fixes into dedicated commits, so you can reproduce them.

@mweinelt mweinelt force-pushed the ruff branch 4 times, most recently from eff3292 to 0924d3c Compare January 12, 2025 18:11
@mweinelt
Copy link
Contributor Author

Okay, that fixes up and modernizes formatting and linting. PTAL.

- Upgrades the linting target version to 3.9, the latest non-eol python
- Runs the CI under the latest stable, Python 3.13
- Migrates to `ruff check` to replace `flake8`
- Migrates to `ruff format` to replace `black`
- Ignore Jupyter Notebooks for now
- Removes the W503/504 checks from ignore, as ruff does not support them
@mpariente
Copy link
Contributor

Thanks !

Why ruff over black ?

@mweinelt
Copy link
Contributor Author

mweinelt commented Jan 12, 2025

The formatting that ruff provides should mostly be compatible with black, but beyond that all the projects created by astral.sh (uv, ruff) are faster and more modern.

⚖️ Drop-in parity with Flake8, isort, and Black

https://github.com/astral-sh/ruff

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.

2 participants