Skip to content

Commit

Permalink
Merge pull request #40 from openzim/fix_ruff
Browse files Browse the repository at this point in the history
Fix ruff command to use the now mandatory  command for fixing
  • Loading branch information
benoit74 authored Apr 19, 2024
2 parents bf16965 + 504079a commit 650a2e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.1] - 2024-04-19

### Fixed

- Fix ruff command to use the now mandatory `check` command for fixing

### Added

## [1.0.0] - 2024-02-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def fix_black(ctx: Context, args: str = "."):
def fix_ruff(ctx: Context, args: str = "."):
"""fix all ruff rules"""
args = args or "." # needed for hatch script
ctx.run(f"ruff --fix {args}", pty=use_pty)
ctx.run(f"ruff check --fix {args}", pty=use_pty)


@task(
Expand Down

0 comments on commit 650a2e0

Please sign in to comment.