Skip to content

Commit

Permalink
Attempts to fix pre-commit
Browse files Browse the repository at this point in the history
Makes it explicit that Hamilton is a first party package.
  • Loading branch information
skrawcz committed Dec 4, 2023
1 parent 5428a03 commit b6024db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions hamilton/plugins/h_polars.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any, Dict, Type, Union

import polars as pl

from hamilton import base


Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ ignore =
W503,
# invalid escape sequence
W605

[isort]
known_first_party=hamilton
2 changes: 1 addition & 1 deletion tests/plugins/test_polars_extensions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pathlib

import polars as pl
import pytest

import polars as pl
from hamilton.plugins.polars_extensions import (
PolarsAvroReader,
PolarsAvroWriter,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

import pandas as pd
import pytest

import hamilton.graph_utils
import hamilton.htypes
import tests.resources.bad_functions
import tests.resources.config_modifier
import tests.resources.cyclic_functions
Expand All @@ -22,6 +19,9 @@
import tests.resources.parametrized_nodes
import tests.resources.test_default_args
import tests.resources.typing_vs_not_typing

import hamilton.graph_utils
import hamilton.htypes
from hamilton import ad_hoc_utils, base, graph, node
from hamilton.execution import graph_functions
from hamilton.node import NodeType
Expand Down

0 comments on commit b6024db

Please sign in to comment.