]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
more lgtm linting
authorBob Halley <halley@dnspython.org>
Wed, 23 Feb 2022 15:03:26 +0000 (07:03 -0800)
committerBob Halley <halley@dnspython.org>
Wed, 23 Feb 2022 15:03:26 +0000 (07:03 -0800)
README.md
dns/version.py

index 234480736efd0dfc7a977a059f165b4b9b4d58c4..03300fce2f8ded7538ce2bf1dc65904727ffaeee 100644 (file)
--- 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
 
index 1a503ad7c22a604391837f1aadd85106757531cf..c6cdf6c6a4dd9d353332026eecd5ff25b6100ae8 100644 (file)
@@ -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