Skip to content

Commit

Permalink
pre-commit outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Havlik committed Sep 21, 2023
1 parent 4b5bbaf commit 00ceaef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions config/config-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion config/default/readthedocs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
path: .

0 comments on commit 00ceaef

Please sign in to comment.