forked from rapidsai/cucim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update linters and move their configurations from setup.cfg to pyproj…
…ect.toml (rapidsai#616) The first commit here is from rapidsai#615 This MR makes multiple linting-related changes to cuCIM - moves existing `isort` config from `setup.cfg` to a new `pyproject.toml` file - update `isort` conventions to match other RAPIDS projects - add `black` and apply it (use `fmt::off`/`fmt::on` as needed to preserve formatting of look-up tables and test cases) - replace use of `flake8` with `ruff` - add config for `codespell` and apply recommended fixes across both C++ and Python code - update CONTRIBUTING.md instructions to reflect these changes - Pre-commit hooks for `black`, `ruff` and `codespell` were added. The pre-commit hook for `flake8` was removed. The only non-linting change is - move pytest configuration from `setup.cfg` to `pyproject.toml` I plan to leave any build-system related changes to `pyproject.toml` to a follow-up MR. This MR focuses only on linting/testing. It will probably be easiest to review the individual commits. Some, like applying `black` are quite large. Fixes rapidsai#23 Authors: - Gregory Lee (https://github.com/grlee77) Approvers: - Bradley Dice (https://github.com/bdice) - Ray Douglass (https://github.com/raydouglass) - Gigon Bae (https://github.com/gigony) - https://github.com/jakirkham URL: rapidsai#616
- Loading branch information
Showing
278 changed files
with
13,311 additions
and
7,886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.