Skip to content

Commit

Permalink
Enable ruff rule flake8-executable (EXE)
Browse files Browse the repository at this point in the history
See: https://docs.astral.sh/ruff/rules/#flake8-executable-exe

Silence the following new warnings:
lieer/nobar.py:1:1: EXE001 Shebang is present but file is not executable
  • Loading branch information
skangas authored and gauteh committed Dec 13, 2023
1 parent 332ec9d commit 513ef84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target-version = "py39"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "I", "UP", "C4", "SIM", "PERF"]
select = ["E4", "E7", "E9", "F", "I", "UP", "C4", "EXE", "SIM", "PERF"]
ignore = [
"E501", # Line too long
"E741", # Ambiguous variable name: `l`
Expand Down
2 changes: 0 additions & 2 deletions lieer/nobar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/env python3
#
# Regular non-TTY drop-in replacement for tqdm
#
# Copyright © 2020 Gaute Hope <[email protected]>
Expand Down

0 comments on commit 513ef84

Please sign in to comment.