From 30da92e7379f6cc92c7dc07962dbe8b9e8fd042b Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Sun, 24 Sep 2023 12:08:28 -0700 Subject: [PATCH] Maint: linting updates --- Makefile | 4 ++-- scooby/__main__.py | 2 -- scooby/report.py | 1 - tests/test_scooby.py | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e52f83c..8453a75 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,11 @@ lint: flake8 --ignore=E501,W503,D10,E123,E203 scooby tests doctest: - @echo "Runnnig module doctesting" + @echo "Runnig module doctesting" pytest -v --doctest-modules scooby apitest: - @echo "Runnnig full API tests" + @echo "Runnig full API tests" pytest -v --cov scooby --cov-report xml format: diff --git a/scooby/__main__.py b/scooby/__main__.py index c8e3b7b..47d4127 100644 --- a/scooby/__main__.py +++ b/scooby/__main__.py @@ -55,7 +55,6 @@ def act(args_dict): """Act upon CLI inputs.""" # Quick exit if only scooby version. if args_dict.pop('version'): - print(f"scooby v{scooby.__version__}") return @@ -75,7 +74,6 @@ def act(args_dict): # Scooby report with additional options. else: - # Collect input. inp = {'additional': args_dict['packages'], 'sort': args_dict['sort']} diff --git a/scooby/report.py b/scooby/report.py index 7bda5dd..2f41653 100644 --- a/scooby/report.py +++ b/scooby/report.py @@ -65,7 +65,6 @@ def total_ram(self): If not available, returns 'unknown'. """ if not hasattr(self, '_total_ram'): - try: import psutil # lazy-load see PR#85 diff --git a/tests/test_scooby.py b/tests/test_scooby.py index b62e279..7508ba8 100644 --- a/tests/test_scooby.py +++ b/tests/test_scooby.py @@ -213,7 +213,6 @@ def test_import_time(): @pytest.mark.script_launch_mode('subprocess') def test_cli(script_runner): - # help for inp in ['--help', '-h']: ret = script_runner.run('scooby', inp)