From c649b1618d11364e6d9073a4d5f6a761817ee58f Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Wed, 7 Apr 2021 12:20:22 +0200 Subject: [PATCH] Remove trailing whitespace in generated config pyup-bot creates a PR with a sample config which includes trailing whitespace. On repositories that have CI checks for trailing whitespaces, the default config fails these checks. --- pyup/config.py | 2 +- tests/test_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyup/config.py b/pyup/config.py index d7baec9..2d21c92 100644 --- a/pyup/config.py +++ b/pyup/config.py @@ -92,7 +92,7 @@ def update_config(self, d): @staticmethod def generate_config_file(config): return "\n\n".join([ - "# autogenerated pyup.io config file \n# see https://pyup.io/docs/configuration/ " + "# autogenerated pyup.io config file\n# see https://pyup.io/docs/configuration/ " "for all available options", yaml.safe_dump(config, default_flow_style=False) ]) diff --git a/tests/test_config.py b/tests/test_config.py index fe9d031..185ddcf 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -12,7 +12,7 @@ def test_generate_config(self): self.assertEqual( result, - "# autogenerated pyup.io config file \n# see https://pyup.io/docs/configura" + \ + "# autogenerated pyup.io config file\n# see https://pyup.io/docs/configura" + \ "tion/ for all available options\n\nupdate: insecure\n" )