From 00ceaeffe9b3a20967d3ebb38fe43974c70dbb2c Mon Sep 17 00:00:00 2001 From: Daniel Havlik Date: Thu, 21 Sep 2023 15:39:18 +0200 Subject: [PATCH] pre-commit outcomes --- config/config-package.py | 9 ++++++--- config/default/readthedocs.yaml.j2 | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/config-package.py b/config/config-package.py index 0445752..6c520c5 100755 --- a/config/config-package.py +++ b/config/config-package.py @@ -329,8 +329,10 @@ def gitignore(self): ) def readthedocs(self): - self.copy_with_meta('readthedocs.yaml.j2', self.path / '.readthedocs.yaml', - self.config_type) + self.copy_with_meta( + 'readthedocs.yaml.j2', self.path / '.readthedocs.yaml', + self.config_type + ) def coveragerc(self): coverage_run_additional_config = self.meta_cfg['coverage-run'].get( @@ -498,7 +500,8 @@ def manifest_in(self): """Modify MANIFEST.in with meta options.""" additional_manifest_rules = self.meta_cfg['manifest'].get( 'additional-rules', []) - if self.with_docs and 'include *.yaml' not in additional_manifest_rules: + if (self.with_docs and 'include *.yaml' + not in additional_manifest_rules): additional_manifest_rules.insert(0, 'include *.yaml') if self.config_type == 'c-code' \ and 'include *.sh' not in additional_manifest_rules: diff --git a/config/default/readthedocs.yaml.j2 b/config/default/readthedocs.yaml.j2 index 6a7b504..4f66f4c 100644 --- a/config/default/readthedocs.yaml.j2 +++ b/config/default/readthedocs.yaml.j2 @@ -20,4 +20,4 @@ python: install: - requirements: docs/requirements.txt - method: pip - path: . \ No newline at end of file + path: .