diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a80843..e57d50e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b302dd..a42ac1f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/README.md b/README.md index d496a34..b3b5b3b 100644 --- a/README.md +++ b/README.md @@ -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)