From 6473aa0403fa7e0fbcbdf46c45a934aa77042a4f Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 23 Feb 2022 07:03:26 -0800 Subject: [PATCH] more lgtm linting --- README.md | 2 +- dns/version.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 23448073..03300fce 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![PyPI version](https://badge.fury.io/py/dnspython.svg)](https://badge.fury.io/py/dnspython) [![License: ISC](https://img.shields.io/badge/License-ISC-brightgreen.svg)](https://opensource.org/licenses/ISC) [![Coverage](https://codecov.io/github/rthalley/dnspython/coverage.svg?branch=master)](https://codecov.io/github/rthalley/dnspython) -[![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython)](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython) +[![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/rthalley/dnspython)](https://lgtm.com/projects/g/rthalley/dnspython/) ## INTRODUCTION diff --git a/dns/version.py b/dns/version.py index 1a503ad7..c6cdf6c6 100644 --- a/dns/version.py +++ b/dns/version.py @@ -28,14 +28,14 @@ RELEASELEVEL = 0x00 #: SERIAL SERIAL = 0 -if RELEASELEVEL == 0x0f: # pragma: no cover +if RELEASELEVEL == 0x0f: # pragma: no cover lgtm[py/unreachable-statement] #: version version = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # lgtm[py/unreachable-statement] elif RELEASELEVEL == 0x00: # pragma: no cover lgtm[py/unreachable-statement] version = '%d.%d.%ddev%d' % (MAJOR, MINOR, MICRO, SERIAL) # lgtm[py/unreachable-statement] -elif RELEASELEVEL == 0x0c: # pragma: no cover +elif RELEASELEVEL == 0x0c: # pragma: no cover lgtm[py/unreachable-statement] version = '%d.%d.%drc%d' % (MAJOR, MINOR, MICRO, SERIAL) # lgtm[py/unreachable-statement] -else: # pragma: no cover +else: # pragma: no cover lgtm[py/unreachable-statement] version = '%d.%d.%d%x%d' % (MAJOR, MINOR, MICRO, RELEASELEVEL, SERIAL) # lgtm[py/unreachable-statement] #: hexversion -- 2.47.3