Skip to content

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

@mweinelt
Copy link
Contributor Author

Anything else?

@mpariente
Copy link
Contributor

mpariente commented Feb 12, 2025

Sorry, but asteroid follows black as well, we won't switch to ruff right now.

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