forked from unionai-oss/pandera
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mypy extra unit tests, pin pandas-stubs for dev env (unionai-oss#…
…1056) * fix mypy extra unit tests, pin pandas-stubs for dev env Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * ignore pandas-stubs version in nox requirements target Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * fix unit tests Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * mypy test uses config Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * update modin tests Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * update ci to use concurrency groups instead of fail-fast Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * update concurrency in workflow Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> * fixes Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
- Loading branch information
1 parent
f03e35e
commit 8ccede9
Showing
17 changed files
with
83 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
follow_imports = skip | ||
allow_redefinition = True | ||
warn_return_any = False | ||
warn_unused_configs = True | ||
show_error_codes = True | ||
exclude = tests/mypy/modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
[isort] | ||
float_to_top = true | ||
profile = black | ||
|
||
[mypy] | ||
ignore_missing_imports = True | ||
allow_redefinition = True | ||
warn_return_any = False | ||
warn_unused_configs = True | ||
show_error_codes = True | ||
exclude = tests/mypy/modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# pylint: skip-file | ||
import pandas as pd | ||
|
||
pd.Timestamp.now() + pd.tseries.offsets.YearEnd(1) # false positive | ||
pd.Timestamp.now() + pd.tseries.offsets.YearEnd(1) | ||
|
||
pd.Timedelta(minutes=2) # false positive | ||
pd.Timedelta(2, unit="minutes") # false positive | ||
pd.Timedelta(minutes=2) | ||
pd.Timedelta(2, unit="minutes") | ||
|
||
pd.Timedelta(minutes=2, seconds=30) # false positive | ||
pd.Timedelta(2.5, unit="minutes") # false positive | ||
pd.Timedelta(minutes=2, seconds=30) | ||
pd.Timedelta(2.5, unit="minutes") # mypy error | ||
pd.Timedelta(2, unit="minutes") + pd.Timedelta(30, unit="seconds") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters