Skip to content

Commit

Permalink
fixup! ✨ Add mypy for static type checking and type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
aguiddir committed Dec 7, 2023
1 parent 166f7b5 commit 0d19a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions datacompy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ def _dataframe_merge(self, ignore_spaces: bool) -> None:
# Clean up temp columns for duplicate row matching
if self._any_dupes:
if self.on_index:
# outer_join.index = outer_join[index_column]
outer_join.set_index(keys=outer_join[index_column], inplace=True)
outer_join.drop(index_column, axis=1, inplace=True)
outer_join.set_index(keys=index_column, drop=True, inplace=True)
self.df1.drop(index_column, axis=1, inplace=True)
self.df2.drop(index_column, axis=1, inplace=True)
outer_join.drop(labels=order_column, axis=1, inplace=True)
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ qa = [
"pre-commit",
"black",
"isort",
"mypy"
"mypy",
"pandas-stubs",
]
build = [
"build",
Expand All @@ -95,10 +96,6 @@ dev = [
"datacompy[build]",
]

mypy = [
"pandas-stubs",
]

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
Expand Down

0 comments on commit 0d19a05

Please sign in to comment.