Skip to content

Commit

Permalink
Merge pull request #10 from griembauer/linting
Browse files Browse the repository at this point in the history
run linting pipeline during pull request
  • Loading branch information
griembauer authored Sep 6, 2023
2 parents 647969c + 31e6101 commit 1480fa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Python Flake8, black and pylint code quality check

on: [push]
on: [push,pull_request]

jobs:
lint:
Expand Down
3 changes: 1 addition & 2 deletions src/grass_gis_helpers/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
import shutil
import gc

from .location import get_location_size

import grass.script as grass
from .location import get_location_size


def general_cleanup(
Expand Down
6 changes: 4 additions & 2 deletions src/grass_gis_helpers/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def get_location_size():
)
grass.message(
_(
("\nDisk usage of GRASS GIS database:\n",
f"{cmd.communicate()[0].decode('utf-8').rstrip()}\n"),
(
"\nDisk usage of GRASS GIS database:\n",
f"{cmd.communicate()[0].decode('utf-8').rstrip()}\n",
),
)
)

0 comments on commit 1480fa8

Please sign in to comment.