Skip to content
Snippets Groups Projects
Commit 14520919 authored by nimrod's avatar nimrod
Browse files

Pylint warnings.

Ignore a few warnings, change the order of imports. Nothing material.
parent 27cbbe0a
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ from os import environ ...@@ -12,8 +12,8 @@ from os import environ
from sys import stdin, stdout from sys import stdin, stdout
import argparse import argparse
from argparse import ArgumentParser from argparse import ArgumentParser
import template.filters
from jinja2 import Environment from jinja2 import Environment
import template.filters
__version__ = "0.5.1" __version__ = "0.5.1"
......
#!/usr/bin/env python #!/usr/bin/env python
"""Filters for the template CLI.""" """Filters for the template CLI."""
# pylint: disable=import-error # pylint: disable=import-error, import-outside-toplevel
from __future__ import ( from __future__ import (
...@@ -166,7 +166,9 @@ def run(*argv, **kwargs): ...@@ -166,7 +166,9 @@ def run(*argv, **kwargs):
defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE} defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE}
defaults.update(kwargs) defaults.update(kwargs)
proc = subprocess.run(*argv, **defaults).__dict__ # nosec proc = subprocess.run( # nosec, pylint: disable=subprocess-run-check
*argv, **defaults
).__dict__
if "text" not in kwargs or kwargs["text"]: if "text" not in kwargs or kwargs["text"]:
proc["stdout"] = proc["stdout"].decode() proc["stdout"] = proc["stdout"].decode()
proc["stderr"] = proc["stderr"].decode() proc["stderr"] = proc["stderr"].decode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment