Skip to content

Commit

Permalink
Remove redudant fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomperez98 committed Oct 24, 2023
1 parent b2896c2 commit d09b296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pyrgo"
version = "1.0.2"
version = "1.1.0"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
Expand Down
5 changes: 2 additions & 3 deletions pyrgo/cli/cmds/fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
def fmt() -> None:
"""Format code with `ruff` and `black`."""
configuration = PyrgoConf.new()
ruff_command = PythonCommandExec.new(program="ruff").add_args(args=["--fix-only"])
fmt_command = PythonCommandExec.new(program="ruff").add_args(args=["format", "."])
for command in [ruff_command, fmt_command]:
for command in [fmt_command]:
command.add_args(args=configuration.relevant_paths)

program_execution = inform_and_run_program(commands=[ruff_command, fmt_command])
program_execution = inform_and_run_program(commands=[fmt_command])
if not isinstance(program_execution, Ok):
sys.exit(1)
sys.exit(0)

0 comments on commit d09b296

Please sign in to comment.