diff --git a/pyproject.toml b/pyproject.toml index 689b265e..ec4668e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "dnsrobocert" -version = "3.0.0" +version = "3.0.1" description = "A tool to manage your DNS-challenged TLS certificates" license = "MIT" keywords = [ diff --git a/src/dnsrobocert/core/legacy.py b/src/dnsrobocert/core/legacy.py index b61e5f57..5e8b82b4 100644 --- a/src/dnsrobocert/core/legacy.py +++ b/src/dnsrobocert/core/legacy.py @@ -74,8 +74,10 @@ def migrate(config_path): LOGGER.warning( "Legacy configuration detected. Support for legacy configurations will be dropped soon." ) - LOGGER.warning("Please visit https://dnsrobocert.readthedocs.io/en/latest/miscellaneous.html#migration-from-docker-letsencrypt-dns " - "for more details. ") + LOGGER.warning( + "Please visit https://dnsrobocert.readthedocs.io/en/latest/miscellaneous.html#migration-from-docker-letsencrypt-dns " + "for more details. " + ) LOGGER.warning( "New configuration file is available at `{0}`".format(example_config_path) ) diff --git a/utils/create_release.py b/utils/create_release.py index f39873cf..77a1f5d5 100644 --- a/utils/create_release.py +++ b/utils/create_release.py @@ -32,7 +32,9 @@ def main(): subprocess.check_call("poetry run isort -rc src test utils", shell=True) subprocess.check_call("poetry run black src test utils", shell=True) - subprocess.check_call('git commit -a -m "Version {0}"'.format(new_version), shell=True) + subprocess.check_call( + 'git commit -a -m "Version {0}"'.format(new_version), shell=True + ) subprocess.check_call("git tag v{0}".format(new_version), shell=True) subprocess.check_call("git push --tags", shell=True) diff --git a/utils/extract_changelog.py b/utils/extract_changelog.py index 66e7f5c2..fd91ffc4 100644 --- a/utils/extract_changelog.py +++ b/utils/extract_changelog.py @@ -7,19 +7,20 @@ ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) -NEW_SECTION_PATTERN = re.compile(r'^\s*##\s*[\d.]+\s*-\s*[\d/]+\s*$') +NEW_SECTION_PATTERN = re.compile(r"^\s*##\s*[\d.]+\s*-\s*[\d/]+\s*$") def main(): version = sys.argv[1] - if version == 'latest': + if version == "latest": section_pattern = NEW_SECTION_PATTERN else: - section_pattern = re.compile(r'^\s*##\s*{0}\s*-\s*[\d/]+\s*$' - .format(version.replace('.', '\\.'))) + section_pattern = re.compile( + r"^\s*##\s*{0}\s*-\s*[\d/]+\s*$".format(version.replace(".", "\\.")) + ) - with open(os.path.join(ROOT, 'CHANGELOG.md')) as file_h: + with open(os.path.join(ROOT, "CHANGELOG.md")) as file_h: lines = file_h.read().splitlines() changelog = [] @@ -38,8 +39,8 @@ def main(): changelog = [entry for entry in changelog if entry] - print('\n'.join(changelog)) + print("\n".join(changelog)) -if __name__ == '__main__': +if __name__ == "__main__": main()