Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 16, 2024
1 parent 2aadd91 commit e63cd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/commands/edit_linting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default [
}
];
EOF

# Infer linter based on file extension
case "$CURRENT_FILE" in
*.py) linter_cmd="flake8 --isolated --select=F821,F822,F831,E111,E112,E113,E999,E902" ;;
Expand Down Expand Up @@ -93,7 +93,7 @@ EOF
# Write the new stuff directly back into the original file
printf "%s\n" "${new_lines[@]}" >| "$CURRENT_FILE"

# Run linter
# Run linter
if [ -n "$linter_cmd" ]; then
_lint_output=$($linter_cmd "$CURRENT_FILE" 2>&1)
lint_output=$(_split_string "$_lint_output" "$linter_before_edit" "$((start_line+1))" "$end_line" "$line_count")
Expand Down

0 comments on commit e63cd98

Please sign in to comment.