From 4ac72a564f1d9c16fb82679b3535049ea78aa372 Mon Sep 17 00:00:00 2001 From: "pin.jin@ga.gov.au" Date: Sun, 6 Nov 2022 22:41:21 +0000 Subject: [PATCH] update pylint --- .github/workflows/lint.yml | 2 +- .pre-commit-config.yaml | 2 +- pylintrc | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 388cb3e0f..bf551dc59 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,7 +39,7 @@ jobs: run: | pip install .[test,dev] pip install pylint - pylint -j 2 --reports no datacube_ows --disable=C,R,E1136 + pylint -j 2 --reports no datacube_ows --disable=C,R,W,E1136 flake8: name: flake8 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11eded8e5..a5675728c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: rev: v2.15.5 hooks: - id: pylint - args: ["--disable=C,R,E1136"] + args: ["--disable=C,R,W,E1136"] - repo: https://github.com/pre-commit/mirrors-autopep8 rev: 'v2.0.0' # Use the sha / tag you want to point at hooks: diff --git a/pylintrc b/pylintrc index 11d025f9c..b7760d1f8 100644 --- a/pylintrc +++ b/pylintrc @@ -35,10 +35,6 @@ disable=no-self-use, [BASIC] - -# List of builtins function names that should not be used, separated by a comma -bad-functions=apply,input - # Regular expression which should only match correct module names module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$