Skip to content

Commit

Permalink
chore: add --show-fixes in tox.ini ruff-check testenv command
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofavorito authored and marcofavoritobi committed Sep 21, 2023
1 parent 8f5ceec commit 5e920ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ black-check-files: ## check black formatting for specific files (specified with

PHONY.: ruff
ruff: ## run ruff linter
ruff check --fix .
ruff check --fix --show-fixes .

PHONY.: ruff-files
ruff-files: ## run ruff linter for specific files (specified with files="file1 file2 somedir ...")
$(call check_defined, files)
ruff check --fix $(files)
ruff check --fix --show-fixes $(files)

PHONY.: ruff-check
ruff-check: ## check ruff linter rules
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ commands = black black_it tests scripts examples --check --verbose
[testenv:ruff]
skip_install = True
deps = ruff==0.0.290
commands = ruff check --fix .
commands = ruff check --fix --show-fixes .

[testenv:ruff-check]
skip_install = True
Expand Down

0 comments on commit 5e920ca

Please sign in to comment.