Excluded autogenerated example code files in flake8 config, code style fixed

This commit is contained in:
Nicolas Kruse 2025-06-06 13:24:46 +02:00
parent 7671a89e14
commit dafdade833
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ exclude =
dist, dist,
.conda, .conda,
tests/autogenerated_*, tests/autogenerated_*,
docs/source/_autogenerated
.venv, .venv,
venv venv

View File

@ -28,6 +28,7 @@ def run_rendering(input_path: str, output_directory: str):
run_cmd(['jupyter', 'nbconvert', '--to', 'markdown', f'{output_directory}/{file_name}.ipynb', '--output', f'{file_name}.md']) run_cmd(['jupyter', 'nbconvert', '--to', 'markdown', f'{output_directory}/{file_name}.ipynb', '--output', f'{file_name}.md'])
run_cmd(['python', 'tests/md_to_code.py', 'script', f'{input_path}', f'{output_directory}/{file_name}.py']) run_cmd(['python', 'tests/md_to_code.py', 'script', f'{input_path}', f'{output_directory}/{file_name}.py'])
def write_dochtree(f: TextIOWrapper, title: str, items: list[str]): def write_dochtree(f: TextIOWrapper, title: str, items: list[str]):
f.write('```{toctree}\n') f.write('```{toctree}\n')
f.write(':maxdepth: 1\n') f.write(':maxdepth: 1\n')