Skip to content

Commit

Permalink
Remove black and isort (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Jun 14, 2024
1 parent 8c9391b commit d4902b3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ jobs:
run: pip install -r requirements.txt
- name: Check code
run: |
black --check --diff .
isort --check --project=uuid_utils .
mypy .
ruff .
make lint
linux:
name: "Linux: ${{ matrix.target }}"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ build:

.PHONY: format
format:
ruff --fix python/ tests/
black python/ tests/
ruff check --fix python/ tests/
ruff format python/ tests/
cargo fmt

.PHONY: lint
lint:
ruff python/ tests/
black --check --diff python/ tests/
ruff check python/ tests/
ruff format --check --diff python/ tests/
mypy python/ tests/
.PHONY: test
test:
Expand Down
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ ignore_missing_imports = true
show_error_codes = true
no_implicit_optional = true

[tool.isort]
profile = "black"
combine_as_imports = true
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"C4",
"UP",
]
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
black==24.4.2
isort==5.13.2
mypy==1.10.0
pytest==8.2.0
ruff==0.4.2
ruff==0.4.8
1 change: 0 additions & 1 deletion tests/test_compat/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Callable

import pytest

from uuid_utils.compat import uuid1, uuid3, uuid4, uuid5, uuid6, uuid7, uuid8


Expand Down
1 change: 0 additions & 1 deletion tests/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from uuid import UUID, getnode

import pytest

import uuid_utils


Expand Down

0 comments on commit d4902b3

Please sign in to comment.