scripts/convert.py
File convert.py
has 822 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
#!/usr/bin/env python3
import argparse
import docx2pdf # type: ignore
import docx # type: ignore
import fnmatch
Function get_mapping_for_edition
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_mapping_for_edition(
Function valid_meta
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def valid_meta(meta: Dict[str, Any], language: str, edition: str, version: str, template: str, layout: str) -> bool:
Function create_edition_from_template
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_edition_from_template(