From: Bob Halley Date: Wed, 23 Feb 2022 15:03:26 +0000 (-0800) Subject: more lgtm linting X-Git-Tag: v2.3.0rc1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6473aa0403fa7e0fbcbdf46c45a934aa77042a4f;p=thirdparty%2Fdnspython.git more lgtm linting --- 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