Replace Black with Ruff Format
This commit is contained in:
parent
330554e5e6
commit
bcf8949691
@ -1,9 +1,4 @@
|
||||
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
|
||||
rev: v1.8.0
|
||||
hooks:
|
||||
@ -18,3 +13,4 @@ repos:
|
||||
hooks:
|
||||
- id: ruff
|
||||
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.
|
||||
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
|
||||
[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.
|
||||
* [Sign](https://help.github.com/articles/signing-commits/) your commits.
|
||||
* Note the Generic Code of Conduct.
|
||||
|
@ -4,7 +4,6 @@
|
||||
[![Maintainability](https://api.codeclimate.com/v1/badges/c7be2d28400687b1375a/maintainability)](https://codeclimate.com/github/gaphor/generic/maintainability)
|
||||
[![Test Coverage](https://api.codeclimate.com/v1/badges/c7be2d28400687b1375a/test_coverage)](https://codeclimate.com/github/gaphor/generic/test_coverage)
|
||||
[![Documentation Status](https://readthedocs.org/projects/generic/badge/?version=latest)](https://generic.readthedocs.io/en/latest/?badge=latest)
|
||||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
|
||||
[![Matrix](https://img.shields.io/badge/chat-on%20Matrix-success)](https://app.element.io/#/room/#gaphor_Lobby:gitter.im)
|
||||
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/gaphor/generic/badge)](https://securityscorecards.dev/viewer/?platform=github.com&org=gaphor&repo=generic)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user