Replace Black with Ruff Format
This commit is contained in:
parent
330554e5e6
commit
bcf8949691
@ -1,9 +1,4 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 23.12.1
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
language_version: python3
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.8.0
|
rev: v1.8.0
|
||||||
hooks:
|
hooks:
|
||||||
@ -18,3 +13,4 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
|
- id: ruff-format
|
||||||
|
@ -80,7 +80,7 @@ If you haven't used poetry before, just run `pip install poetry`, and then run t
|
|||||||
4. Do the changes in your fork.
|
4. Do the changes in your fork.
|
||||||
5. If you like the change and think the project could use it:
|
5. If you like the change and think the project could use it:
|
||||||
* Be sure you have the pre-commit hook installed above, it will ensure that
|
* Be sure you have the pre-commit hook installed above, it will ensure that
|
||||||
[Black](https://github.com/ambv/black) is automatically run on any changes for
|
[Ruff](https://docs.astral.sh/ruff/) is automatically run on any changes for
|
||||||
consistent code formatting.
|
consistent code formatting.
|
||||||
* [Sign](https://help.github.com/articles/signing-commits/) your commits.
|
* [Sign](https://help.github.com/articles/signing-commits/) your commits.
|
||||||
* Note the Generic Code of Conduct.
|
* Note the Generic Code of Conduct.
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
[](https://codeclimate.com/github/gaphor/generic/maintainability)
|
[](https://codeclimate.com/github/gaphor/generic/maintainability)
|
||||||
[](https://codeclimate.com/github/gaphor/generic/test_coverage)
|
[](https://codeclimate.com/github/gaphor/generic/test_coverage)
|
||||||
[](https://generic.readthedocs.io/en/latest/?badge=latest)
|
[](https://generic.readthedocs.io/en/latest/?badge=latest)
|
||||||
[](https://github.com/ambv/black)
|
|
||||||
[](https://app.element.io/#/room/#gaphor_Lobby:gitter.im)
|
[](https://app.element.io/#/room/#gaphor_Lobby:gitter.im)
|
||||||
[](https://securityscorecards.dev/viewer/?platform=github.com&org=gaphor&repo=generic)
|
[](https://securityscorecards.dev/viewer/?platform=github.com&org=gaphor&repo=generic)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user