Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.4.10 to 0.5.0 in the dev-dependenci…
Browse files Browse the repository at this point in the history
…es group (#36)

* build(deps-dev): bump ruff in the dev-dependencies group

Bumps the dev-dependencies group with 1 update: [ruff](https://github.com/astral-sh/ruff).


Updates `ruff` from 0.4.10 to 0.5.0
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.4.10...0.5.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: migrate formatter to ruff

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: martabal <[email protected]>
  • Loading branch information
dependabot[bot] and martabal authored Jul 1, 2024
1 parent a02bc81 commit 3c8b291
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 123 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
run: poetry install --with dev,test

- name: Run python linter
run: poetry run ruff check .
run: poetry run ruff check render_templates
if: ${{ !cancelled() }}

- name: Run python formatter
run: poetry run black --check .
run: poetry run ruff format --check render_templates
if: ${{ !cancelled() }}

- name: Run tests and coverage
Expand Down
137 changes: 21 additions & 116 deletions poetry.lock

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

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ python = "^3.12"
jinja2 = "^3.1.4"

[tool.poetry.group.dev.dependencies]
ruff = "^0.4.10"
black = "^24.4.2"
ruff = "^0.5.0"

[tool.poetry.group.test.dependencies]
pytest = "^8.2.2"
Expand Down
1 change: 0 additions & 1 deletion render_templates/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def generate_template(
build_folder: str,
flavor: Flavor,
) -> None:

flavor_name = flavor["name"]
machine_learning_provider = flavor["machine_learning_provider"]
root_folder_path = os.path.join(build_folder, "root")
Expand Down
4 changes: 2 additions & 2 deletions render_templates/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def test_wrong_args():
with pytest.raises(SystemExit) as e:
argv = ["-n"]
init(argv)
assert e.type == SystemExit
assert e.type is SystemExit
with pytest.raises(SystemExit) as e:
argv = ["-n", "--flavor", flavors[0]["name"]]
init(argv)
assert e.type == SystemExit
assert e.type is SystemExit


def test_check_folder():
Expand Down

0 comments on commit 3c8b291

Please sign in to comment.