-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
MyPy CI Configuration #25844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
MyPy CI Configuration #25844
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
28b3abc
Updated gitignore
WillAyd a293c49
Added configuration file
WillAyd f831b88
Fixed syntax error in type hint
WillAyd 604ae03
Working whitelist of files with current annotations
WillAyd ec8e890
Updated code checks script
WillAyd 60d12bc
LINT fixup
WillAyd f2bc6d5
Merge remote-tracking branch 'upstream/master' into mypy-ci
WillAyd 6316959
Fixed code checks, added to azure-pipelines
WillAyd 70e150c
Added mypy to development dependencies
WillAyd c565d7d
Changed code check to intentionally fail
WillAyd b4a0e09
Fixed syntax error in code checks script
WillAyd 0c2d01c
Added whitelist of modules for mypy
WillAyd 724d1bf
Self contained blacklist in config file
WillAyd a16e0b6
Removed whitelist
WillAyd be7babb
Merge remote-tracking branch 'upstream/master' into mypy-ci
WillAyd 134baab
Added config file to fix error
WillAyd eeb266e
Merge remote-tracking branch 'upstream/master' into mypy-ci
WillAyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -19,6 +19,7 @@ dependencies: | |
- hypothesis>=3.82 | ||
- isort | ||
- moto | ||
- mypy | ||
- pycodestyle | ||
- pytest>=4.0.2 | ||
- pytest-mock | ||
|
This file contains hidden or 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,198 @@ | ||
[mypy] | ||
ignore_missing_imports=True | ||
follow_imports=silent | ||
|
||
[mypy-pandas.conftest,pandas.tests.*] | ||
ignore_errors=True | ||
|
||
[mypy-pandas._version] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.compat] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.compat.numpy.function] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.compat.pickle_compat] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.accessor] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.api] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.apply] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.array_] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.datetimelike] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.integer] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.interval] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.numpy_] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.period] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.sparse] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.arrays.timedeltas] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.base] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.computation.expr] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.computation.ops] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.computation.pytables] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.config] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.config_init] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.dtypes.dtypes] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.dtypes.missing] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.frame] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.generic] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.groupby.generic] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.groupby.groupby] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.groupby.ops] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexes.base] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexes.datetimelike] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexes.datetimes] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexes.period] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexes.timedeltas] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.indexing] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.internals.blocks] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.ops] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.panel] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.resample] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.reshape.concat] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.reshape.merge] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.reshape.reshape] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.reshape.tile] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.series] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.sparse.frame] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.strings] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.util.hashing] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.core.window] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.clipboards] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.feather_format] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.formats.css] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.html] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.json.json] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.json.normalize] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.json.table_schema] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.packers] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.parquet] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.pytables] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.io.stata] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.plotting._core] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.tseries.frequencies] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.tseries.holiday] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.tseries.offsets] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.util._doctools] | ||
ignore_errors=True | ||
|
||
[mypy-pandas.util.testing] | ||
ignore_errors=True |
This file contains hidden or 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 |
---|---|---|
|
@@ -1827,10 +1827,9 @@ def interpolate(self, method='pad', axis=0, inplace=False, limit=None, | |
placement=self.mgr_locs) | ||
|
||
def shift(self, | ||
periods, # type: int | ||
axis=0, # type: libinternals.BlockPlacement | ||
fill_value=None): # type: Any | ||
# type: (...) -> List[ExtensionBlock] | ||
periods: int, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was kind of annoying to fix some syntax issues and make this work with LINT so I just converted to new syntax to avoid hassle |
||
axis: libinternals.BlockPlacement = 0, | ||
fill_value: Any = None) -> List['ExtensionBlock']: | ||
""" | ||
Shift the block by `periods`. | ||
|
||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ gitpython | |
hypothesis>=3.82 | ||
isort | ||
moto | ||
mypy | ||
pycodestyle | ||
pytest>=4.0.2 | ||
pytest-mock | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.