Merge pull request #461 from gaphor/ruff-format

Replace Black with Ruff Format
This commit is contained in:
Arjan Molenaar 2023-12-27 13:19:32 +01:00 committed by GitHub
commit 2484d56488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View File

@ -4,7 +4,7 @@
### PR Checklist
Please check if your PR fulfills the following requirements:
- [ ] I have read, and am following the [Contributor guide](https://github.com/gaphor/generic/blob/main/CONTRIBUTING.md)
- [ ] I have read, and I am following the [Contributor guide](https://github.com/gaphor/generic/blob/main/CONTRIBUTING.md)
- [ ] I have read and understand the [Code of Conduct](https://github.com/gaphor/generic/blob/main/CODE_OF_CONDUCT.md)
### PR Type

View File

@ -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

View File

@ -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.

View File

@ -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)