infra: add -p to mkdir in lint steps (#17013)

Previously, if this did not find a mypy cache then it wouldnt run

this makes it always run

adding mypy ignore comments with existing uncaught issues to unblock other prs

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
Harrison Chase
2024-02-05 11:22:06 -08:00
committed by GitHub
parent db6af21395
commit 4eda647fdd
103 changed files with 378 additions and 369 deletions

View File

@@ -95,12 +95,13 @@ class OntotextGraphDBGraph:
if local_file:
ontology_schema_graph = self._load_ontology_schema_from_file(
local_file, local_file_format
local_file,
local_file_format, # type: ignore[arg-type]
)
else:
self._validate_user_query(query_ontology)
self._validate_user_query(query_ontology) # type: ignore[arg-type]
ontology_schema_graph = self._load_ontology_schema_with_query(
query_ontology
query_ontology # type: ignore[arg-type]
)
self.schema = ontology_schema_graph.serialize(format="turtle")
@@ -139,7 +140,7 @@ class OntotextGraphDBGraph:
)
@staticmethod
def _load_ontology_schema_from_file(local_file: str, local_file_format: str = None):
def _load_ontology_schema_from_file(local_file: str, local_file_format: str = None): # type: ignore[no-untyped-def, assignment]
"""
Parse the ontology schema statements from the provided file
"""
@@ -176,7 +177,7 @@ class OntotextGraphDBGraph:
"Invalid query type. Only CONSTRUCT queries are supported."
)
def _load_ontology_schema_with_query(self, query: str):
def _load_ontology_schema_with_query(self, query: str): # type: ignore[no-untyped-def]
"""
Execute the query for collecting the ontology schema statements
"""