Skip to content

Commit

Permalink
Move from black and isort to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielguarisa committed Oct 25, 2023
1 parent 0ec0ab7 commit 369bff3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,4 @@ $RECYCLE.BIN/

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

.vscode/settings.json
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ init:

.PHONY: formatting
formatting:
poetry run isort --settings-path pyproject.toml ./
poetry run black --config pyproject.toml ./
poetry run ruff format .

.PHONY: check-formatting
check-formatting:
poetry run isort --settings-path pyproject.toml --check-only ./
poetry run black --config pyproject.toml --check ./
poetry run ruff check .

.PHONY: tests
tests:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ numpy = "^1.19.5"
pydantic = "2.4.2"
networkx = "^2.6.3"
pandera = "^0.17.2"
ruff = "^0.1.2"

[tool.poetry.dev-dependencies]
pytest = "*"
pytest-cov = "*"
black = "^22.6.0"
isort = {extras = ["colors"], version = "*"}
pytest-mock = "*"

[tool.black]
Expand Down
1 change: 0 additions & 1 deletion tests/test_nodes/test_contains.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def test_Contains_node():


def test_Contains_node_run():

Contains_node = Contains(**input_data)

output = Contains_node.run(pd.Series(["1", "2"]), pd.Series(["2"]))
Expand Down
1 change: 0 additions & 1 deletion tests/test_nodes/test_endswith.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def test_EndsWith_node():


def test_EndsWith_node_run():

EndsWith_node = EndsWith(**input_data)

output = EndsWith_node.run(pd.Series(["100"]), pd.Series(["2"]))
Expand Down
1 change: 0 additions & 1 deletion tests/test_nodes/test_endswithany.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def test_EndsWithAny_node():


def test_EndsWithAny_node_run():

EndsWithAny_node = EndsWithAny(**input_data)

output = EndsWithAny_node.run(pd.Series(["100"]), pd.Series(["2", "1"]))
Expand Down

0 comments on commit 369bff3

Please sign in to comment.