Skip to content

Commit

Permalink
fixed invalid-print-syntax warnings from flake8 (#477)
Browse files Browse the repository at this point in the history
* turned on F63,F7 warnings for flake8
  • Loading branch information
edwardhartnett authored Sep 10, 2024
1 parent 4575301 commit c71f21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest_flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors
flake8 . --count --select=E9 --show-source --statistics
flake8 . --count --select=E9,F63,F7 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6 changes: 3 additions & 3 deletions ush/rocoto/rocoto_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def sigwinch_handler(signum, frame):

def usage(message=None):
curses.endwin()
print>>sys.stderr, '''
print('''
Usage: rocoto_status_viewer.py -w workflow.xml -d database.db [--listtasks]\n [--html=filename.html]\n [--perfmetrics={True,False}]
Mandatory arguments:
Expand All @@ -128,10 +128,10 @@ def usage(message=None):
--listtasks --- print out a list of all tasks
--html=filename.html --- creates an HTML document of status
--perfmetrics=True --- turn on/off extra columns for performance metrics
--help --- print this usage message'''
--help --- print this usage message''', file=sys.stderr)

if message is not None:
print>>sys.stderr,'\n'+str(message).rstrip()+'\n'
print('\n'+str(message).rstrip()+'\n', file=sys.stderr)
sys.exit(-1)

def augment_SQLite3(filename):
Expand Down

0 comments on commit c71f21a

Please sign in to comment.