mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 14:24:48 +00:00
Merge pull request #791 from rjeffman/pylint_update_2_12_2
Update pylint to version 2.12.2
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
|||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: |
|
run: |
|
||||||
pip install pylint==2.10.2
|
pip install pylint==2.12.2
|
||||||
pylint plugins roles --disable=import-error
|
pylint plugins roles --disable=import-error
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pydocstyle
|
- id: pydocstyle
|
||||||
- repo: https://github.com/pycqa/pylint
|
- repo: https://github.com/pycqa/pylint
|
||||||
rev: v2.10.2
|
rev: v2.12.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: pylint
|
- id: pylint
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
ipdb
|
ipdb
|
||||||
pre-commit
|
pre-commit
|
||||||
flake8-bugbear
|
flake8-bugbear
|
||||||
pylint==2.10.2
|
pylint==2.12.2
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ else:
|
|||||||
cli_realm, cli_domain, cli_server, cli_kdc, dnsok,
|
cli_realm, cli_domain, cli_server, cli_kdc, dnsok,
|
||||||
filename, client_domain, client_hostname, force=False,
|
filename, client_domain, client_hostname, force=False,
|
||||||
configure_sssd=True):
|
configure_sssd=True):
|
||||||
# pylint: disable=global-statement
|
# pylint: disable=global-variable-not-assigned
|
||||||
global options
|
global options
|
||||||
options.force = force
|
options.force = force
|
||||||
options.sssd = configure_sssd
|
options.sssd = configure_sssd
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ ignore = D1,D212,D203
|
|||||||
|
|
||||||
[pylint.MASTER]
|
[pylint.MASTER]
|
||||||
disable =
|
disable =
|
||||||
|
consider-using-f-string, # f-string is not supported on Python2
|
||||||
unspecified-encoding, # open() does not provide `encoding` in Python2
|
unspecified-encoding, # open() does not provide `encoding` in Python2
|
||||||
use-maxsplit-arg,
|
use-maxsplit-arg,
|
||||||
redundant-u-string-prefix,
|
redundant-u-string-prefix,
|
||||||
|
|||||||
Reference in New Issue
Block a user