From f0aa5fd4de375d03550d773f630a614dd9fc4147 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Thu, 17 Oct 2019 18:48:00 +0200 Subject: [PATCH 1/2] library: Use new-style classes with @property Reference: https://lgtm.com/rules/10030086/ --- library/network_connections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/network_connections.py b/library/network_connections.py index 39e81e8..0ff7a04 100644 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -1373,7 +1373,7 @@ class NMUtil: ############################################################################### -class RunEnvironment: +class RunEnvironment(object): def __init__(self): self._check_mode = None @@ -1538,7 +1538,7 @@ class RunEnvironmentAnsible(RunEnvironment): ############################################################################### -class Cmd: +class Cmd(object): def __init__( self, run_env, From ea8e6b4f23f9751faa07c985f9b2d677ab726bcf Mon Sep 17 00:00:00 2001 From: Till Maas Date: Thu, 17 Oct 2019 18:48:24 +0200 Subject: [PATCH 2/2] README: Add LGTM banner --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2830b4e..509b716 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ linux-system-roles/network [![Coverage Status](https://coveralls.io/repos/github/linux-system-roles/network/badge.svg)](https://coveralls.io/github/linux-system-roles/network) [![Travis Build Status](https://travis-ci.org/linux-system-roles/network.svg?branch=master)](https://travis-ci.org/linux-system-roles/network) [![Code Style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/linux-system-roles/network.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/linux-system-roles/network/context:python) Overview --------