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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ from os import environ
from sys import stdin, stdout
import argparse
from argparse import ArgumentParser
import template.filters
from jinja2 import Environment
import template.filters


__version__ = "0.5.1"
+4 −2
Original line number Diff line number Diff line
#!/usr/bin/env python
"""Filters for the template CLI."""
# pylint: disable=import-error
# pylint: disable=import-error, import-outside-toplevel


from __future__ import (
@@ -166,7 +166,9 @@ def run(*argv, **kwargs):

    defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE}
    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"]:
        proc["stdout"] = proc["stdout"].decode()
        proc["stderr"] = proc["stderr"].decode()