From 3585a95bf52447c7f57b7ccd6f86a1b377fa1735 Mon Sep 17 00:00:00 2001 From: 97gamjak <97gamjak@gmail.com> Date: Mon, 6 May 2024 10:58:17 +0200 Subject: [PATCH] updated pylint.yml --- .github/workflows/pylint.yml | 1 + PQAnalysis/type_checking.py | 4 ++++ tests/__init__.py | 4 ++++ tests/analysis/rdf/test_api.py | 6 +++++- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 4548dc49..47a068d9 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -108,6 +108,7 @@ jobs: git commit -m "Add .github/.pylint_cache on push event" - name: Push changes + if: github.event_name == 'push' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/PQAnalysis/type_checking.py b/PQAnalysis/type_checking.py index 93b5bcab..7ce821b9 100644 --- a/PQAnalysis/type_checking.py +++ b/PQAnalysis/type_checking.py @@ -1,3 +1,7 @@ +""" +A module for type checking of arguments passed to functions at runtime. +""" + import logging from decorator import decorator diff --git a/tests/__init__.py b/tests/__init__.py index 9ea12d19..f42913fa 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,3 +1,7 @@ +""" +Unit tests for the PQAnalysis package. +""" + import os os.environ['PQANALYSIS_BEARTYPE_LEVEL'] = "RELEASE" diff --git a/tests/analysis/rdf/test_api.py b/tests/analysis/rdf/test_api.py index 34c6e6d6..ce7c446b 100644 --- a/tests/analysis/rdf/test_api.py +++ b/tests/analysis/rdf/test_api.py @@ -1,4 +1,8 @@ -import pytest +""" +A module to test the RDF API. +""" + +import pytest # pylint: disable=unused-import from PQAnalysis.analysis.rdf.api import rdf from PQAnalysis.type_checking import _get_type_error_message