import re


from . import RepoChecker


class CheckSemverTags(RepoChecker):

    def check(self):
        if not self.semver_tags:
            msg = "No semantic version tags found. See http://semver.org."
            for tag in self.tags:
                if re.search(r"(v|^)\d+\.\d+$", tag.name):
                    msg += " Semantic versions consist of exactly three numeric parts."
                    break
            self.fail(msg)

import re


from . import RepoChecker


class CheckSemverTags(RepoChecker):

    def check(self):
        if not self.semver_tags:
            msg = "No semantic version tags found"
            for tag in self.tags:
                if re.search(r"(v|^)\d+\.\d+$", tag.name):
                    msg += " (semantic versions consist of exactly three numeric parts)"
                    break
            self.fail(msg)

Change message of semver tag check
Change message of semver tag check

  import re
  
  
  from . import RepoChecker
  
  
  class CheckSemverTags(RepoChecker):
  
      def check(self):
          if not self.semver_tags:
-             msg = "No semantic version tags found. See http://semver.org."
+             msg = "No semantic version tags found"
              for tag in self.tags:
                  if re.search(r"(v|^)\d+\.\d+$", tag.name):
-                     msg += " Semantic versions consist of exactly three numeric parts."
+                     msg += " (semantic versions consist of exactly three numeric parts)"
                      break
              self.fail(msg)
  
Change message of semver tag check
## Code Before:
import re


from . import RepoChecker


class CheckSemverTags(RepoChecker):

    def check(self):
        if not self.semver_tags:
            msg = "No semantic version tags found. See http://semver.org."
            for tag in self.tags:
                if re.search(r"(v|^)\d+\.\d+$", tag.name):
                    msg += " Semantic versions consist of exactly three numeric parts."
                    break
            self.fail(msg)

## Instruction:
Change message of semver tag check
## Code After:
import re


from . import RepoChecker


class CheckSemverTags(RepoChecker):

    def check(self):
        if not self.semver_tags:
            msg = "No semantic version tags found"
            for tag in self.tags:
                if re.search(r"(v|^)\d+\.\d+$", tag.name):
                    msg += " (semantic versions consist of exactly three numeric parts)"
                    break
            self.fail(msg)
