[lint] disable W0511(fixme)
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed

- unused-import
- wrong-import-order
This commit is contained in:
SouthFox 2023-07-12 00:56:58 +08:00
parent 03f12b7d3b
commit 29cc7017cb
4 changed files with 3 additions and 4 deletions

View file

@ -28,4 +28,4 @@ jobs:
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: | run: |
mv demo/config.py.simple demo/config.py mv demo/config.py.simple demo/config.py
pylint --disable=E0401 $(git ls-files '*.py') pylint --disable=E0401,W0511 $(git ls-files '*.py')

View file

@ -5,7 +5,7 @@ pipeline:
- poetry add pylint - poetry add pylint
- poetry install - poetry install
- mv demo/config.py.simple demo/config.py - 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: flake8:
image: fnndsc/python-poetry image: fnndsc/python-poetry
commands: commands:

View file

@ -2,7 +2,6 @@
"""process Key.""" """process Key."""
from pathlib import Path from pathlib import Path
from Crypto.PublicKey import RSA from Crypto.PublicKey import RSA
from demo.config import KEY_PATH
def get_pubkey_as_pem(key_path: Path) -> str: def get_pubkey_as_pem(key_path: Path) -> str:

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
"""Something misc.""" """Something misc."""
import click
import sys import sys
import click
from Crypto.PublicKey import RSA from Crypto.PublicKey import RSA
from demo import config from demo import config