Skip to content

Commit

Permalink
Remove black in favour of ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle committed Oct 25, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a8cdb86 commit abcea50
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ jobs:
run: |
mypy .
ruff .
black --check .
ruff format --check .
pip-extra-reqs pip_check_reqs
pip-missing-reqs pip_check_reqs
pylint pip_check_reqs tests
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -86,17 +86,13 @@
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words = 'no'

[tool.black]

line-length = 79

[tool.mypy]

strict = true

[tool.ruff]

target-version = "py38"
target-version = "py39"

select = ["ALL"]

1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black
ruff
mypy
pyenchant
4 changes: 2 additions & 2 deletions tests/test_find_extra_reqs.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
import textwrap
from typing import TYPE_CHECKING

import black
import pip # This happens to be installed in the test environment.
import pytest

from pip_check_reqs import common, find_extra_reqs
@@ -17,7 +17,7 @@

def test_find_extra_reqs(tmp_path: Path) -> None:
installed_not_imported_required_package = pytest
installed_imported_required_package = black
installed_imported_required_package = pip

fake_requirements_file = tmp_path / "requirements.txt"
fake_requirements_file.write_text(
4 changes: 2 additions & 2 deletions tests/test_find_missing_reqs.py
Original file line number Diff line number Diff line change
@@ -6,15 +6,15 @@
import textwrap
from pathlib import Path

import black
import pip # This happens to be installed in the test environment.
import pytest

from pip_check_reqs import common, find_missing_reqs


def test_find_missing_reqs(tmp_path: Path) -> None:
installed_imported_not_required_package = pytest
installed_imported_required_package = black
installed_imported_required_package = pip

fake_requirements_file = tmp_path / "requirements.txt"
fake_requirements_file.write_text(

0 comments on commit abcea50

Please sign in to comment.