Fixed linting
This commit is contained in:
@@ -610,8 +610,7 @@ class DocumentManager:
|
|||||||
".css", # Cascading Style Sheets
|
".css", # Cascading Style Sheets
|
||||||
".scss", # Sassy CSS
|
".scss", # Sassy CSS
|
||||||
".less", # LESS CSS
|
".less", # LESS CSS
|
||||||
)
|
),
|
||||||
|
|
||||||
):
|
):
|
||||||
self.input_dir = Path(input_dir)
|
self.input_dir = Path(input_dir)
|
||||||
self.supported_extensions = supported_extensions
|
self.supported_extensions = supported_extensions
|
||||||
@@ -1180,10 +1179,41 @@ def create_app(args):
|
|||||||
|
|
||||||
# Process based on file type
|
# Process based on file type
|
||||||
match ext:
|
match ext:
|
||||||
case ".txt" | ".md" | ".html" | ".htm" | ".tex" | ".json" | ".xml" | ".yaml" | ".yml" | \
|
case (
|
||||||
".rtf" | ".odt" | ".epub" | ".csv" | ".log" | ".conf" | ".ini" | ".properties" | \
|
".txt"
|
||||||
".sql" | ".bat" | ".sh" | ".c" | ".cpp" | ".py" | ".java" | ".js" | ".ts" | \
|
| ".md"
|
||||||
".swift" | ".go" | ".rb" | ".php" | ".css" | ".scss" | ".less":
|
| ".html"
|
||||||
|
| ".htm"
|
||||||
|
| ".tex"
|
||||||
|
| ".json"
|
||||||
|
| ".xml"
|
||||||
|
| ".yaml"
|
||||||
|
| ".yml"
|
||||||
|
| ".rtf"
|
||||||
|
| ".odt"
|
||||||
|
| ".epub"
|
||||||
|
| ".csv"
|
||||||
|
| ".log"
|
||||||
|
| ".conf"
|
||||||
|
| ".ini"
|
||||||
|
| ".properties"
|
||||||
|
| ".sql"
|
||||||
|
| ".bat"
|
||||||
|
| ".sh"
|
||||||
|
| ".c"
|
||||||
|
| ".cpp"
|
||||||
|
| ".py"
|
||||||
|
| ".java"
|
||||||
|
| ".js"
|
||||||
|
| ".ts"
|
||||||
|
| ".swift"
|
||||||
|
| ".go"
|
||||||
|
| ".rb"
|
||||||
|
| ".php"
|
||||||
|
| ".css"
|
||||||
|
| ".scss"
|
||||||
|
| ".less"
|
||||||
|
):
|
||||||
content = file.decode("utf-8")
|
content = file.decode("utf-8")
|
||||||
|
|
||||||
case ".pdf":
|
case ".pdf":
|
||||||
|
Reference in New Issue
Block a user