BuddhaNexus/buddhanexus

View on GitHub
#316 PR fixes & lint #323
aminahbl authored 4ed721cf
complete00:00:29
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-10-31T11:46:37.783033 #1]  WARN -- : Skipping frontend/src/utils/mdxPageHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:37.783081 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:37.904563 #1]  WARN -- : Skipping frontend/src/utils/api/constants.ts due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:37.904602 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.227709 #1]  WARN -- : Skipping frontend/src/components/db/SearchableDbSourceTree/TreeNavigation/TreeBreadcrumbs.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.227767 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.264555 #1]  WARN -- : Skipping frontend/src/components/layout/QueryResultsPageContent.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.264585 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.576971 #1]  WARN -- : Skipping frontend/src/features/SidebarSuite/TabContent/UtilityOptionsSection/UtilityOptionsSection.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.577004 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.631578 #1]  WARN -- : Skipping frontend/src/features/SidebarSuite/common/PanelHeading.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.631611 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.650449 #1]  WARN -- : Skipping frontend/src/features/SidebarSuite/uiSettings/DbViewSelector.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.650572 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.680795 #1]  WARN -- : Skipping frontend/src/features/SidebarSuite/uiSettings/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.680825 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.743326 #1]  WARN -- : Skipping frontend/src/features/SidebarSuite/uiSettings/DbSourceFilter/tree/DbSourceFilterTreeNode.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.743359 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:38.888355 #1]  WARN -- : Skipping frontend/src/features/globalSearch/GlobalSearchStyledMuiComponents.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:38.888391 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:39.195477 #1]  WARN -- : Skipping frontend/src/pages/news/[slug].tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:39.195754 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:39.339784 #1]  WARN -- : Skipping frontend/src/pages/[slug].tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:39.339938 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-10-31T11:46:42.724378 #1]  INFO -- : Skipping file dataloader/dataloader_constants.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    ARANGO_HOST = f"http://{os.environ['ARANGO_HOST']}:{os.environ['ARANGO_PORT']}"
                                                                                  ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.725490 #1]  INFO -- : Skipping file dataloader/load_segments.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 58
    SEARCH_COLLECTION_NAME: str
                          ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.737058 #1]  INFO -- : Skipping file dataloader/dataloader_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    id: str = Field(..., min_length=1)
      ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.741578 #1]  INFO -- : Skipping file dataloader/tasks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 82
    print(f"created {DB_NAME} database")
                                      ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.762490 #1]  INFO -- : Skipping file dataloader/clean_database.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 79
    def empty_collection(collection_name: str, db: StandardDatabase, edge: bool = False):
                                        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.777712 #1]  INFO -- : Skipping file dataloader/dataloader_validator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    print(f"Validating {doc_path}: OK")
                                     ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.780116 #1]  INFO -- : Skipping file dataloader/global_search.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    ANALYZER_NAME: str
                 ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.797780 #1]  INFO -- : Skipping file dataloader/load_parallels.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def load_parallels(parallels, db: StandardDatabase) -> None:
                                    ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.802637 #1]  INFO -- : Skipping file dataloader/load_stats.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    global_stats_file = f"{folder}/{lang}/stats/global_stats.json.gz"
                                                                    ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.821766 #1]  INFO -- : Skipping file dataloader/tasks_menu.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    menu_collection: dict,
                   ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.839062 #1]  INFO -- : Skipping file dataloader/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def get_arango_client() -> ArangoClient:
                            ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.856239 #1]  INFO -- : Skipping file dataloader/load_text_metadata.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def load_text_metadata_from_menu_files(langs: list, db: StandardDatabase):
                                                ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.873640 #1]  INFO -- : Skipping file ./metadata/filelists/add_new_tib_files.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 50
    if match := re.match(raw_string, string):
              ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.873706 #1]  INFO -- : Skipping file ./metadata/filelists/meta_check_tsv_dir.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def path_to_filename(path: Path) -> str:
                             ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.908248 #1]  INFO -- : Skipping file ./metadata/filelists/remove_Terdzo.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 35
    print(f"all terdzo: {terdzo_counter}")
                                        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.945091 #1]  INFO -- : Skipping file ./api/endpoints/endpoint_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    raise HTTPException(status_code=404, detail="Item not found") from error
                                                                     ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.946537 #1]  INFO -- : Skipping file ./api/endpoints/links.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    async def get_external_links(
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.958569 #1]  INFO -- : Skipping file ./api/endpoints/models/utils_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    file_name: str = ""
             ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.960605 #1]  INFO -- : Skipping file ./api/endpoints/numbers_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 50
    async def get_numbers_view(input: GeneralInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.970552 #1]  INFO -- : Skipping file ./api/endpoints/models/links_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    bdrc: str
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.981612 #1]  INFO -- : Skipping file ./api/endpoints/models/numbers_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    segmentnr: Union[str, None] = None
             ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.988202 #1]  INFO -- : Skipping file ./api/endpoints/models/menus_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    displayName: str
               ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:42.994353 #1]  INFO -- : Skipping file ./api/endpoints/models/text_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    file_name: str
             ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.007902 #1]  INFO -- : Skipping file ./api/endpoints/models/visual_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    inquiry_collection: str = ""
                      ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.010671 #1]  INFO -- : Skipping file ./api/endpoints/models/graph_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    file_name: str = ""
             ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.025168 #1]  INFO -- : Skipping file ./api/endpoints/models/search_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    search_string: str
                 ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.026514 #1]  INFO -- : Skipping file ./api/endpoints/models/table_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    par_segnr_range: str
                   ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.044622 #1]  INFO -- : Skipping file ./api/endpoints/models/general_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    category_include: list = []
                    ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.044798 #1]  INFO -- : Skipping file ./api/endpoints/search.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    async def get_search_results(input: SearchInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.080302 #1]  INFO -- : Skipping file ./api/endpoints/text_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    async def get_parallels_for_middle(input: TextViewMiddleInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.080406 #1]  INFO -- : Skipping file ./api/endpoints/table_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    async def get_table_view(input: GeneralInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.100005 #1]  INFO -- : Skipping file ./api/endpoints/graph_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    async def get_graph_for_file(input: GraphInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.109475 #1]  INFO -- : Skipping file ./api/endpoints/visual_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    async def get_visual_view(input: VisualViewInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.114831 #1]  INFO -- : Skipping file ./api/endpoints/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    async def get_counts_for_file(input: CountMatchesInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.127899 #1]  INFO -- : Skipping file ./api/endpoints/menus.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    async def get_files_for_menu(
        ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.152904 #1]  INFO -- : Skipping file ./api/main.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 42
    def root() -> object:
               ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.351393 #1]  INFO -- : Skipping file ./api/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 48
    def get_sort_key(sort_method) -> str:
                                  ^
SyntaxError: invalid syntax


I, [2024-10-31T11:46:43.352591 #1]  INFO -- : Skipping file ./api/db_connection.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def get_db() -> Database:
                 ^
SyntaxError: invalid syntax


W, [2024-10-31T11:46:44.197730 #1]  WARN -- : Skipping ./frontend/src/utils/mdxPageHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:44.197769 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:44.341937 #1]  WARN -- : Skipping ./frontend/src/utils/api/constants.ts due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:44.341972 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:44.889458 #1]  WARN -- : Skipping ./frontend/src/components/db/SearchableDbSourceTree/TreeNavigation/TreeBreadcrumbs.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:44.890057 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:44.936865 #1]  WARN -- : Skipping ./frontend/src/components/layout/QueryResultsPageContent.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:44.936951 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.426918 #1]  WARN -- : Skipping ./frontend/src/features/SidebarSuite/TabContent/UtilityOptionsSection/UtilityOptionsSection.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.427013 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.512299 #1]  WARN -- : Skipping ./frontend/src/features/SidebarSuite/common/PanelHeading.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.512351 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.534005 #1]  WARN -- : Skipping ./frontend/src/features/SidebarSuite/uiSettings/DbViewSelector.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.534047 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.561585 #1]  WARN -- : Skipping ./frontend/src/features/SidebarSuite/uiSettings/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.561813 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.637178 #1]  WARN -- : Skipping ./frontend/src/features/SidebarSuite/uiSettings/DbSourceFilter/tree/DbSourceFilterTreeNode.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.637218 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:45.844243 #1]  WARN -- : Skipping ./frontend/src/features/globalSearch/GlobalSearchStyledMuiComponents.tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:45.844303 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:46.305523 #1]  WARN -- : Skipping ./frontend/src/pages/news/[slug].tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:46.305628 #1]  WARN -- : Response status: 422
W, [2024-10-31T11:46:46.452304 #1]  WARN -- : Skipping ./frontend/src/pages/[slug].tsx due to CC::Parser::Client::HTTPError
W, [2024-10-31T11:46:46.452574 #1]  WARN -- : Response status: 422
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
58 [0.. 50.. ]
8
pep8
pep8 engine documentation
View output
dataloader/load_segments.py dataloader/dataloader_constants.py dataloader/tasks.py dataloader/dataloader_models.py dataloader/views_properties.py dataloader/clean_database.py dataloader/global_search.py dataloader/dataloader_validator.py dataloader/load_stats.py dataloader/load_parallels.py dataloader/tasks_menu.py dataloader/__init__.py dataloader/utils.py dataloader/folios.py dataloader/load_text_metadata.py .github/ .idea/ tsv/ metadata/ api/ frontend/public/ frontend/src/utils/ frontend/src/components/ frontend/src/features/ frontend/src/codegen/ frontend/src/pages/ frontend/src/atoms/ frontend/.yarn/ frontend/.husky/ frontend/content/ setup/
9
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/buddhanexus_smaller.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/buddhanexus_small.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/android-chrome-192x192.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/gretil.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/dsbc.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/gretil_light.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/sc.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/vri.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/rkts_light.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/bdrc_light.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/cbeta.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/rkts.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/logos/bdrc.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_uni_goettingen.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_sutta_central.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_vipassana_research_institute.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/atii_logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_khyentse_center.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_acip.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_pli_upscaled.jpeg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_chn_upscaled.jpeg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_uwest.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_chn_upscaled_bw.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_welcome_upscaled_bw.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_vienna.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_dsbc.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_welcome_upscaled.jpeg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_pli_upscaled_bw.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_cbc.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_rkts.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_skt_upscaled_bw.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_beta.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_skt_upscaled.jpeg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_tib_upscaled_bw.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_uni_hamburg.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_sub.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/bg_tib_upscaled.jpeg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_buddhist_digital_resource_center.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/assets/images/partner_digital_humanities.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/android-chrome-512x512.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/mstile-150x150.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/apple-touch-icon.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/favicon-32x32.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/frontend/public/favicon-16x16.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 375 files indexed
ERROR: Unable to parse file: /code/dataloader/load_segments.py
ERROR: Parse error at line 58 column 26:

   51: 
   52:     loader_instance, file_group = args
   53:     for file in file_group:
   54:         loader_instance._process_file(file)
   55: 
   56: 
   57: class LoadSegmentsBase:
  -->      SEARCH_COLLECTION_NAME: str
   59:     DATA_PATH: str
   60: 
   61:     def __init__(self) -> None:
   62:         self.metadata_file_list = self._init_metadata_file_list()
   63: 
   64:     def

ERROR: Unable to parse file: /code/dataloader/dataloader_models.py
ERROR: Parse error at line 22 column 6:

   10: 
   11:     tibetan = "tib"
   12:     sanskrit = "skt"
   13:     chinese = "chn"
   14:     pali = "pli"
   15: 
   16: 
   17: class Match(BaseModel):
   18:     """
   19:     The base model of a Parallel object
   20:     """
   21: 
  -->      id: str = Field(..., min_length=1)
   23:     score: float
   24:     par_length: int
   25:     root_length: int
   26:     inquiry_pos_beg: int
   27: 

ERROR: Unable to parse file: /code/dataloader/global_search.py
ERROR: Parse error at line 46 column 17:

   40: (METADATA_DIR + "tib_stopwords.txt")
   41: skt_stopwords_list = get_stopwords_list(METADATA_DIR + "skt_stopwords.txt")
   42: pli_stopwords_list = get_stopwords_list(METADATA_DIR + "pli_stopwords.txt")
   43: 
   44: 
   45: class AnalyzerBase:
  -->      ANALYZER_NAME: str
   47:     CASE: str
   48:     STOPWORDS: list
   49:     ACCENT: bool
   50: 
   51:     def create_analyzer(self, db: StandardDatabase):
   52:         db.create_analyzer

ERROR: Unable to parse file: /code/metadata/filelists/add_new_tib_files.py
ERROR: Parse error at line 50 column 14:

   39: ,
   40:     "(TZ[0-9]{1,2})",
   41:     "(TZ)-"
   42: ]
   43: 
   44: def startswithregex(patter, string):
   45:     """if strings starts with patern which should have it pattern to return as the first group
   46:     E.g. we are looking for files starting with T[0-9]- but want to get return only T1, T2 without "-"
   47:     """
   48: 
   49:     raw_string = r"{}.*".format(patter)
  -->      if match := re.match(raw_string, string):
   51: 
   52:         return match.groups()[0]
   53:     return None
   54: 
   55: def startswithregex_list(

ERROR: Unable to parse file: /code/api/endpoints/models/utils_models.py
ERROR: Parse error at line 7 column 13:

    1: from pydantic import BaseModel
    2: from typing import List, Optional
    3: from .general_models import Limits
    4: 
    5: 
    6: class CountMatchesInput(BaseModel):
  -->      file_name: str = ""
    8:     score = 0
    9:     par_length = 0
   10:     limits: Optional[Limits]
   11: 
   12: 
   13: class CountMatchesOutput(BaseModel):
   14:     parallel_count

ERROR: Unable to parse file: /code/api/endpoints/models/links_models.py
ERROR: Parse error at line 5 column 8:

    1: from pydantic import BaseModel
    2: 
    3: 
    4: class LinksOutput(BaseModel):
  -->      bdrc: str
    6:     rkts: str
    7:     gretil: str
    8:     dsbc: str
    9:     cbeta: str
   10:     suttacentral: str
   11:     cbc: str
   12:     vri: str

ERROR: Unable to parse file: /code/api/endpoints/models/numbers_view_models.py
ERROR: Parse error at line 6 column 13:

    1: from pydantic import BaseModel
    2: from typing import List, Union
    3: 
    4: 
    5: class Parallel(BaseModel):
  -->      segmentnr: Union[str, None] = None
    7:     displayName: Union[str, None] = None
    8:     fileName: Union[str, None] =

ERROR: Unable to parse file: /code/api/endpoints/models/menus_models.py
ERROR: Parse error at line 6 column 15:

    1: from pydantic import BaseModel
    2: from typing import List, Union
    3: 
    4: 
    5: class Files(BaseModel):
  -->      displayName: str
    7:     textname: str
    8:     filename: str
    9:     category: str
   10:     available_lang: Union[str, None] = None
   11:     search_field: str
   12: 

ERROR: Unable to parse file: /code/api/endpoints/models/text_view_models.py
ERROR: Parse error at line 7 column 13:

    1: pydantic import BaseModel
    2: from typing import List, Union, Optional
    3: from .general_models import Limits, FullText
    4: 
    5: 
    6: class TextParallelsInput(BaseModel):
  -->      file_name: str
    8:     active_segment: str = "none"
    9:     score: int = 0
   10:     par_length: int = 0
   11:     limits: Optional[Limits]
   12:     multi_lingual:

ERROR: Unable to parse file: /code/api/endpoints/models/visual_view_models.py
ERROR: Parse error at line 6 column 22:

    1: from pydantic import BaseModel
    2: from typing import List, Union
    3: 
    4: 
    5: class VisualViewInput(BaseModel):
  -->      inquiry_collection: str = ""
    7:     hit_collections: list = []
    8: 
    9: 
   10: class VisualViewOutput(BaseModel):
   11:     __root__: List[List[Union[str

ERROR: Unable to parse file: /code/api/endpoints/models/graph_view_models.py
ERROR: Parse error at line 6 column 13:

    1: from pydantic import BaseModel
    2: from typing import List, Union
    3: 
    4: 
    5: class GraphInput(BaseModel):
  -->      file_name: str = ""
    7:     score: int = 0
    8:     par_length: int = 0
    9:     target_collection: list = []
   10: 
   11: 
   12: class GraphViewOutput(BaseModel)

ERROR: Unable to parse file: /code/api/endpoints/models/search_models.py
ERROR: Parse error at line 12 column 17:

    1: BaseModel
    2: from typing import List, Optional
    3: from .general_models import Limits, FullNames, FullText
    4: 
    5: """
    6: Search results are not yet working so the below needs to 
    7: be updated accordingly
    8: """
    9: 
   10: 
   11: class SearchInput(BaseModel):
  -->      search_string: str
   13:     language: str = ""
   14:     limits: Optional[Limits]
   15: 
   16: 
   17: class SearchResults(BaseModel):
   18:     category: str
   19:     language

ERROR: Unable to parse file: /code/api/endpoints/models/table_view_models.py
ERROR: Parse error at line 7 column 19:

    1: from pydantic import BaseModel
    2: from typing import List
    3: from .general_models import GeneralInput, FullNames, FullText
    4: 
    5: 
    6: class Segment(BaseModel):
  -->      par_segnr_range: str
    8:     par_full_names: FullNames
    9:     root_full_names: FullNames
   10:     file_name: str
   11:     root_segnr_range: str
   12:     par_length: int
   13:     root_length: int
   14:     score: int

ERROR: Unable to parse file: /code/api/endpoints/models/general_models.py
ERROR: Parse error at line 10 column 20:

    1: from pydantic import BaseModel
    2: from typing import Optional, Union
    3: 
    4: 
    5: class Limits(BaseModel):
    6:     """
    7:     Limits for parallels
    8:     """
    9: 
  -->      category_include: list = []
   11:     category_exclude: list = []
   12:     file_include: list = []
   13:     file_exclude: list = []
   14: 
   15: 
   16: class GeneralInput

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1.664s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------