Skip to content

Commit

Permalink
chore(ci): fix ruff format checking (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Apr 17, 2024
1 parent 4c7bc29 commit 270dc6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests-on-push.yml
Expand Up @@ -38,8 +38,8 @@ jobs:
uses: ./.github/actions/setup
- name: Linting with ruff
run: poetry exec ruff-check-github
- name: Formatting with ruff
run: poetry exec ruff-format
- name: Check formatting with ruff
run: poetry exec ruff-format-check
- name: Linting with mypy
run: poetry exec mypy
- name: Linting with darglint
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -98,7 +98,7 @@ ruff-check = "ruff check . --ignore=A002,D101,D102,PLR0913,PLR2004,PLW0603"
ruff-check-github = """
ruff check . --output-format=github --ignore=A002,D101,D102,PLR0913,PLR2004,PLW0603
"""
ruff-format = "ruff format ."
ruff-format-check = "ruff format --check ."
mypy = "mypy ."
unittests = "pytest test/unittests/"
integration-tests = "pytest test/integration/"
Expand Down
6 changes: 2 additions & 4 deletions src/dsp_tools/commands/excel2xml/excel2xml_cli.py
Expand Up @@ -524,12 +524,10 @@ def excel2xml(
print(f"WARNING: {warning.message}")

if success:
print(f"XML file successfully written to '{output_file!s}'")
print(f"XML file successfully written to '{output_file}'")
else:
red = "\033[31m"
end = "\033[0m"
print(
f"{red}Some problems occurred. The XML file was written to '{output_file!s}', but it might be corrupt{end}"
)
print(f"{red}Some problems occurred. The XML file was written to '{output_file}', but it might be corrupt{end}")

return success, catched_warnings

0 comments on commit 270dc6f

Please sign in to comment.