mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
Merge pull request #628 from rjeffman/pylint_update_version
pylint: Upgrade to version 2.10.2.
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -73,5 +73,5 @@ jobs:
|
||||
python-version: "3.x"
|
||||
- name: Run pylint
|
||||
run: |
|
||||
pip install pylint==2.8.2
|
||||
pip install pylint==2.10.2
|
||||
pylint plugins --disable=import-error
|
||||
|
||||
@@ -22,7 +22,7 @@ repos:
|
||||
hooks:
|
||||
- id: pydocstyle
|
||||
- repo: https://github.com/pycqa/pylint
|
||||
rev: v2.9.5
|
||||
rev: v2.10.2
|
||||
hooks:
|
||||
- id: pylint
|
||||
args:
|
||||
|
||||
@@ -104,7 +104,7 @@ else:
|
||||
try:
|
||||
from collections.abc import Mapping # noqa
|
||||
except ImportError:
|
||||
from collections import Mapping # noqa
|
||||
from collections import Mapping # pylint: disable=deprecated-class
|
||||
|
||||
if six.PY3:
|
||||
unicode = str
|
||||
|
||||
@@ -78,15 +78,14 @@ class AutomountLocation(FreeIPABaseModule):
|
||||
ipa_param_mapping = {}
|
||||
|
||||
def get_location(self, location):
|
||||
response = dict()
|
||||
try:
|
||||
response = self.api_command("automountlocation_show",
|
||||
location,
|
||||
{})
|
||||
except ipalib_errors.NotFound:
|
||||
pass
|
||||
|
||||
return response.get("result", None)
|
||||
return None
|
||||
else:
|
||||
return response.get("result", None)
|
||||
|
||||
def check_ipa_params(self):
|
||||
if len(self.ipa_params.name) == 0:
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
ipdb
|
||||
pre-commit
|
||||
flake8-bugbear
|
||||
pylint==2.10.2
|
||||
|
||||
Reference in New Issue
Block a user