mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
secrets: disable relative-imports for custodia
pylint is somehow confused about us importing custodia in ipaserver.secrets.* modules, disable the check for these. https://pagure.io/freeipa/issue/6874 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
fab589d7f5
commit
82d0279381
@ -1,7 +1,9 @@
|
||||
# Copyright (C) 2015 IPA Project Contributors, see COPYING for license
|
||||
|
||||
from __future__ import print_function
|
||||
# pylint: disable=relative-import
|
||||
from custodia.message.kem import KEMClient, KEY_USAGE_SIG, KEY_USAGE_ENC
|
||||
# pylint: enable=relative-import
|
||||
from jwcrypto.common import json_decode
|
||||
from jwcrypto.jwk import JWK
|
||||
from ipaserver.secrets.kem import IPAKEMKeys
|
||||
|
@ -12,8 +12,10 @@ from ipapython.dn import DN
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa, ec
|
||||
# pylint: disable=relative-import
|
||||
from custodia.message.kem import KEMKeysStore
|
||||
from custodia.message.kem import KEY_USAGE_SIG, KEY_USAGE_ENC, KEY_USAGE_MAP
|
||||
# pylint: enable=relative-import
|
||||
from jwcrypto.common import json_decode, json_encode
|
||||
from jwcrypto.common import base64url_encode
|
||||
from jwcrypto.jwk import JWK
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright (C) 2017 IPA Project Contributors, see COPYING for license
|
||||
import argparse
|
||||
|
||||
import custodia.server
|
||||
import custodia.server # pylint: disable=relative-import
|
||||
|
||||
|
||||
argparser = argparse.ArgumentParser(
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from __future__ import print_function
|
||||
from base64 import b64encode, b64decode
|
||||
from custodia.store.interface import CSStore
|
||||
from custodia.store.interface import CSStore # pylint: disable=relative-import
|
||||
from jwcrypto.common import json_decode, json_encode
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython import ipautil
|
||||
|
Loading…
Reference in New Issue
Block a user