Skip to content

Commit

Permalink
Use ruff instead of black for formatting (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve authored Nov 9, 2023
1 parent d614a4e commit 380a877
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## In development

- Use ruff instead of black for formatting ().

## 23.2 (2023-06-28)

- Fix references to example application (#648).
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
[![CI](https://github.com/zostera/django-bootstrap4/workflows/CI/badge.svg?branch=main)](https://github.com/zostera/django-bootstrap4/actions?workflow=CI)
[![Coverage Status](https://coveralls.io/repos/github/zostera/django-bootstrap4/badge.svg?branch=main)](https://coveralls.io/github/zostera/django-bootstrap4?branch=main)
[![Latest PyPI version](https://img.shields.io/pypi/v/django-bootstrap4.svg)](https://pypi.python.org/pypi/django-bootstrap4)
[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

Bootstrap 4 integration for Django.
Bootstrap 4 for Django.

## Goal

Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ clean = "rm -rf docs/_build"

[tool.hatch.envs.lint]
dependencies = [
"black>=23.3.0",
"ruff>=0.0.270",
]
detached = true
Expand All @@ -133,19 +132,14 @@ all = [
"style",
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
"ruff format {args:.}",
"style",
]
style = [
"ruff {args:.}",
"black --check --diff {args:.}",
]

[tool.black]
line-length = 120
target_version = ["py38", "py39", "py310", "py311"]

[tool.ruff]
fix = false
fixable = [
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap4/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "23.2"
__version__ = "23.3.dev0"
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def test_version(self):

version = bootstrap4.__version__
version_parts = version.split(".")
self.assertEqual(len(version_parts), 2)
self.assertTrue(len(version_parts) >= 2)

0 comments on commit 380a877

Please sign in to comment.