Skip to content

Commit

Permalink
Maint: linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Sep 24, 2023
1 parent 092c890 commit 30da92e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions scooby/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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']}

Expand Down
1 change: 0 additions & 1 deletion scooby/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion tests/test_scooby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30da92e

Please sign in to comment.