Skip to content

Commit

Permalink
Switch from flake8 to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 7, 2022
1 parent d702fd2 commit 91cd1c5
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 190 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.envrc
.direnv
.commit
.ruff_cache

rp-indexer

Expand Down
6 changes: 2 additions & 4 deletions code_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import colorama

parser = argparse.ArgumentParser(description="Code checks")
parser.add_argument("--skip-flake", action="store_true")
parser.add_argument("--debug", action="store_true")
args = parser.parse_args()

Expand Down Expand Up @@ -42,9 +41,8 @@ def status(line):
status("Running black")
cmd("black temba")

if not args.skip_flake:
status("Running flake8")
cmd("flake8")
status("Running ruff")
cmd("ruff temba")

# if any code changes were made, exit with error
if cmd("git diff temba locale"):
Expand Down
Loading

0 comments on commit 91cd1c5

Please sign in to comment.