diff --git a/.gitignore b/.gitignore index db6e11f..559475b 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Makefile b/Makefile index b5478bf..a894f70 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 8c2c314..1e2b7c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/tests/test_nodes/test_contains.py b/tests/test_nodes/test_contains.py index 69f85bf..0d70d56 100644 --- a/tests/test_nodes/test_contains.py +++ b/tests/test_nodes/test_contains.py @@ -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"])) diff --git a/tests/test_nodes/test_endswith.py b/tests/test_nodes/test_endswith.py index ea4582f..29ff285 100644 --- a/tests/test_nodes/test_endswith.py +++ b/tests/test_nodes/test_endswith.py @@ -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"])) diff --git a/tests/test_nodes/test_endswithany.py b/tests/test_nodes/test_endswithany.py index 28bf6a0..0de017b 100644 --- a/tests/test_nodes/test_endswithany.py +++ b/tests/test_nodes/test_endswithany.py @@ -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"]))