Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Yu ISHIKAWA <yuu.ishikawa+github@gmail.com>
  • Loading branch information
yu-iskw committed Jul 5, 2023
1 parent 5c0f176 commit d587a8f
Show file tree
Hide file tree
Showing 21 changed files with 26 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ dmypy.json
.pyre/

# VSCode
.vscode
.vscode
1 change: 1 addition & 0 deletions dbt_artifacts_parser/parsers/manifest/manifest_v5.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# pylint: disable=no-name-in-module
from pydantic import Extra, Field, constr

from dbt_artifacts_parser.parsers.base import BaseParserModel


Expand Down
1 change: 1 addition & 0 deletions dbt_artifacts_parser/parsers/manifest/manifest_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# pylint: disable=no-name-in-module
from pydantic import Extra, Field, constr

from dbt_artifacts_parser.parsers.base import BaseParserModel


Expand Down
1 change: 1 addition & 0 deletions dbt_artifacts_parser/parsers/manifest/manifest_v7.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from typing import Any, Dict, List, Optional, Union

from pydantic import Extra, Field, constr

from dbt_artifacts_parser.parsers.base import BaseParserModel


Expand Down
3 changes: 2 additions & 1 deletion dbt_artifacts_parser/parsers/manifest/manifest_v8.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
from enum import Enum
from typing import Any, Dict, List, Optional, Union

from dbt_artifacts_parser.parsers.base import BaseParserModel
from pydantic import Extra, Field, constr

from dbt_artifacts_parser.parsers.base import BaseParserModel


class ManifestMetadata(BaseParserModel):
class Config:
Expand Down
12 changes: 3 additions & 9 deletions dbt_artifacts_parser/parsers/manifest/manifest_v9.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@

from datetime import datetime
from enum import Enum
from typing import Any
from typing import Dict
from typing import List
from typing import Optional
from typing import Union

from pydantic import constr
from pydantic import Extra
from pydantic import Field
from typing import Any, Dict, List, Optional, Union

from pydantic import Extra, Field, constr

from dbt_artifacts_parser.parsers.base import BaseParserModel

Expand Down
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/manifest/manifest_v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -5222,4 +5222,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/manifest/v3.json"
}
}
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/manifest/manifest_v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -5936,4 +5936,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/manifest/v4.json"
}
}
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/manifest/manifest_v5.json
Original file line number Diff line number Diff line change
Expand Up @@ -5981,4 +5981,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/manifest/v5.json"
}
}
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/manifest/manifest_v6.json
Original file line number Diff line number Diff line change
Expand Up @@ -6206,4 +6206,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/manifest/v6.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/run-results/v3.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/run-results/v4.json"
}
}
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/sources/sources_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/sources/v2.json"
}
}
2 changes: 1 addition & 1 deletion dbt_artifacts_parser/resources/sources/sources_v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.getdbt.com/dbt/sources/v3.json"
}
}
7 changes: 3 additions & 4 deletions tests/parsers/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
# limitations under the License.
#
#
import os
import json
import os

import pytest

from dbt_artifacts_parser.utils import get_project_root
from dbt_artifacts_parser.parsers.utils import get_dbt_schema_version, get_model_class

from dbt_artifacts_parser.parsers.catalog.catalog_v1 import CatalogV1
from dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1
from dbt_artifacts_parser.parsers.manifest.manifest_v2 import ManifestV2
Expand All @@ -39,7 +36,9 @@
from dbt_artifacts_parser.parsers.sources.sources_v1 import SourcesV1
from dbt_artifacts_parser.parsers.sources.sources_v2 import SourcesV2
from dbt_artifacts_parser.parsers.sources.sources_v3 import SourcesV3
from dbt_artifacts_parser.parsers.utils import get_dbt_schema_version, get_model_class
from dbt_artifacts_parser.parsers.version_map import ArtifactTypes
from dbt_artifacts_parser.utils import get_project_root


class TestDbtUtils:
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/v2/jaffle_shop/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/resources/v3/jaffle_shop/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/resources/v4/jaffle_shop/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/resources/v6/jaffle_shop/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/resources/v7/jaffle_shop/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/resources/v8/jaffle_shop/manifest.json

Large diffs are not rendered by default.

0 comments on commit d587a8f

Please sign in to comment.