diff --git a/.github/workflows/pytest_flake8.yml b/.github/workflows/pytest_flake8.yml index 5d6636df..45f43874 100644 --- a/.github/workflows/pytest_flake8.yml +++ b/.github/workflows/pytest_flake8.yml @@ -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 diff --git a/ush/rocoto/rocoto_viewer.py b/ush/rocoto/rocoto_viewer.py index 24269f98..cedbb1ee 100755 --- a/ush/rocoto/rocoto_viewer.py +++ b/ush/rocoto/rocoto_viewer.py @@ -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: @@ -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):