Skip to content

Commit

Permalink
Replace black with pytest-ruff
Browse files Browse the repository at this point in the history
- `pytest-black` has been abandoned: shopkeep/pytest-black#70
  • Loading branch information
VirginiaDooley committed Jan 30, 2024
1 parent e8f3654 commit 77a85eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ jobs:
python manage.py check
python manage.py makemigrations --check
- run:
name: Black
name: Ruff
command: |
. .venv/bin/activate
black -l 80 --check .
ruff format .
- run:
name: CurlyLint
command: |
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[tool.black]
line-length = 80

[tool.ruff]
line-length = 80
ignore = ["E501"]
Expand Down Expand Up @@ -29,5 +26,5 @@ addopts =[
"--ignore=wcivf/settings/local.py",
"--ignore=lib",
"--ruff",
"--black",
"--ruff-format",
]
6 changes: 2 additions & 4 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-r base.txt

black==23.7.0

pytest
pytest-django
Expand All @@ -14,6 +13,5 @@ tomlkit
freezegun==1.2.2
django-debug-toolbar==4.1.0
curlylint==0.13.1
ruff==0.0.280
pytest-ruff
pytest-black
ruff==0.1.15
pytest-ruff==0.2.1

0 comments on commit 77a85eb

Please sign in to comment.