Merge pull request #28743 from mrc0mmand/lint-python-scripts
tools: lint Python scripts
This commit is contained in:
@@ -17,10 +17,7 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with systemd; If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# pylint: disable=missing-docstring,invalid-name,import-outside-toplevel
|
||||
# pylint: disable=consider-using-with,unspecified-encoding,line-too-long
|
||||
# pylint: disable=too-many-locals,too-many-statements,too-many-return-statements
|
||||
# pylint: disable=too-many-branches,redefined-builtin,fixme
|
||||
# pylint: disable=import-outside-toplevel,consider-using-with,disable=redefined-builtin
|
||||
|
||||
import argparse
|
||||
import os
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
# pylint: disable=missing-docstring,redefined-outer-name,invalid-name
|
||||
# pylint: disable=unused-import,import-outside-toplevel,useless-else-on-loop
|
||||
# pylint: disable=consider-using-with,wrong-import-position,unspecified-encoding
|
||||
# pylint: disable=protected-access
|
||||
# pylint: disable=protected-access,redefined-outer-name
|
||||
|
||||
import base64
|
||||
import json
|
||||
|
||||
+2
-6
@@ -16,12 +16,8 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with systemd; If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# pylint: disable=missing-docstring,invalid-name,import-outside-toplevel
|
||||
# pylint: disable=consider-using-with,unspecified-encoding,line-too-long
|
||||
# pylint: disable=too-many-locals,too-many-statements,too-many-return-statements
|
||||
# pylint: disable=too-many-branches,too-many-lines,too-many-instance-attributes
|
||||
# pylint: disable=too-many-arguments,unnecessary-lambda-assignment,fixme
|
||||
# pylint: disable=unused-argument
|
||||
# pylint: disable=import-outside-toplevel,consider-using-with,unused-argument
|
||||
# pylint: disable=unnecessary-lambda-assignment
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
|
||||
Reference in New Issue
Block a user