-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap Broker formatting from black to ruff
uff now offers code formatting that is largely black-compatible, with some deviations [1]. Since we are already using Ruff for code linting in the project, we can also rely on it to handle code formatting. This will not only decrease the number of dependencies, but also be faster and (arguably) better formatted. [1] - https://docs.astral.sh/ruff/formatter/black/
- Loading branch information
1 parent
7f0040d
commit b24bfcf
Showing
4 changed files
with
6 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
# configuration for pre-commit git hooks | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.0.277 | ||
rev: v0.1.6 | ||
hooks: | ||
- id: ruff | ||
- id: ruff # Linter | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format # Formatter |
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