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

chore(ci): switch from flake8 to ruff #67

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

kennedykori
Copy link
Contributor

Switch from using flake8 to ruff as the primary linter for the project. Ruff is orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface. This should help speed up linting for the project considerably and allow for much more sophisticated linting options and configurations. As a consequence of that, the following changes are included as part of this migration:

  • Removal of flake8 from the project’s dependencies and pre-commit hooks.
  • Addition of ruff to the project's dependencies and pre-commit hooks.
  • Activation of additional linting rules supported by ruff and the accompanying changes on the source code to conform to these rules.
  • Upgrading of existing dependencies.
  • Removal of tox.ini. Tox configuration is now included in the pyproject.toml file. All the project configuration is now housed in one file. This is in line with PEP 621 guidelines.
  • Minor fixes and improvements.

Switch from using [flake8](https://pypi.org/project/flake8) to [ruff](https://pypi.org/project/ruff) as the primary linter for the project. Ruff is orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface. This should help speed up linting for the project considerably and allow for much more sophisticated linting options and configurations. As a consequence of that, the following changes are included as part of this migration:

- Removal of flake8 from the project’s dependencies and pre-commit hooks.
- Addition of `ruff` to the project's dependencies and pre-commit hooks.
- Activation of additional linting rules supported by `ruff` and the accompanying changes on the source code to conform to these rules.
- Upgrading of existing dependencies.
- Removal of `tox.ini`. Tox configuration is now included in the `pyproject.toml` file. All the project configuration is now housed in one file. This is in line with [PEP 621](https://peps.python.org/pep-0621) guidelines.
- Minor fixes and improvements.
@saladgg
Copy link
Contributor

saladgg commented Apr 13, 2023

Every config under under one file pyproject.toml
That's a good one!

@saladgg saladgg merged commit 7b35d67 into develop Apr 13, 2023
@saladgg saladgg deleted the chore-migrate-to-ruff branch April 13, 2023 02:55
kennedykori added a commit that referenced this pull request Apr 13, 2023
Continue the work stated on [#67](#67) and update the static project metadata on the `pyproject.toml` file as defined on [PEP 621](https://peps.python.org/pep-0621).
saladgg pushed a commit that referenced this pull request Apr 13, 2023
Continue the work stated on [#67](#67) and update the static project metadata on the `pyproject.toml` file as defined on [PEP 621](https://peps.python.org/pep-0621).
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.

None yet

2 participants