From c54e346887ea0afff1c134980fb3e096f23b6d79 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sun, 21 Nov 2021 14:22:20 -0500 Subject: [PATCH] ci: install dependencies * Install GTK dev dependencies * Add requirements.txt * Fix error that happens on CI only (?) --- .github/workflows/main.yml | 2 +- requirements.txt | 2 ++ src/diffuse/dialogs.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 052629f..9a77a65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Pylint uses: cclauss/GitHub-Action-for-pylint@master with: - args: "pylint src/**/*.py" + args: "apk add --no-cache gtk+3.0-dev gobject-introspection-dev ; pip install -r requirements.txt ; pylint src/**/*.py" meson-build-test: runs-on: ubuntu-latest diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..95fc636 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +PyGObject~=3.40 +pylint~=2.11 diff --git a/src/diffuse/dialogs.py b/src/diffuse/dialogs.py index 191504f..4701014 100644 --- a/src/diffuse/dialogs.py +++ b/src/diffuse/dialogs.py @@ -110,6 +110,7 @@ class FileChooserDialog(Gtk.FileChooserDialog): def get_revision(self): return self.revision.get_text() + # pylint: disable-next=arguments-differ def get_filename(self): # convert from UTF-8 string to unicode return Gtk.FileChooserDialog.get_filename(self) # pylint: disable=no-member