Skip to content

Commit 5667864

Browse files
committed
Enabled ruff EXE ruleset and fixed files with inconsisentcy between executableness and shebang pressence
1 parent b2beaae commit 5667864

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

examples/scripts/script.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# coding=utf-8
32
"""
43
Trivial example of a Python script which can be run inside a cmd2 application.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ select = [
174174
"E", # pycodestyle errors (warn about major stylistic issues like mixing spaces and tabs)
175175
# "EM", # flake8-errmsg (warn about exceptions that use string literals that aren't assigned to a variable first)
176176
# "ERA", # eradicate (warn about commented-out code)
177-
# "EXE", # flake8-executable (warn about files with a shebang present that aren't executable or vice versa)
177+
"EXE", # flake8-executable (warn about files with a shebang present that aren't executable or vice versa)
178178
"F", # Pyflakes (a bunch of common warnings for things like unused imports, imports shadowed by variables, etc)
179179
"FA", # flake8-future-annotations (warn if certain from __future__ imports are used but missing)
180180
"FAST", # FastAPI specific warnings

tests/pyscript/raises_exception.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# coding=utf-8
32
"""
43
Example demonstrating what happens when a Python script raises an exception

tests/script.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# coding=utf-8
32
"""
43
Trivial example of a Python script which can be run inside a cmd2 application.

tests_isolated/test_commandset/test_categories.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# coding=utf-8
32
"""
43
Simple example demonstrating basic CommandSet usage.

0 commit comments

Comments
 (0)