diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 818ab4d..46bf0bf 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -28,4 +28,4 @@ jobs: - name: Analysing the code with pylint run: | mv demo/config.py.simple demo/config.py - pylint --disable=E0401 $(git ls-files '*.py') + pylint --disable=E0401,W0511 $(git ls-files '*.py') diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index dcfbbec..b4aef78 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -5,7 +5,7 @@ pipeline: - poetry add pylint - poetry install - mv demo/config.py.simple demo/config.py - - find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401 + - find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401,W0511 flake8: image: fnndsc/python-poetry commands: diff --git a/demo/utils/key.py b/demo/utils/key.py index e637bb2..0f066fa 100644 --- a/demo/utils/key.py +++ b/demo/utils/key.py @@ -2,7 +2,6 @@ """process Key.""" from pathlib import Path from Crypto.PublicKey import RSA -from demo.config import KEY_PATH def get_pubkey_as_pem(key_path: Path) -> str: diff --git a/misc.py b/misc.py index 295d1c7..dde3df1 100644 --- a/misc.py +++ b/misc.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Something misc.""" -import click import sys +import click from Crypto.PublicKey import RSA from demo import config