-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CI/TYP: enable reportGeneralTypeIssues for subset of files #47252
Merged
Merged
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7bd6399
CI/TYP: enable reportGeneralTypeIssues for subset of files
twoertwein c925279
labels can be Iterable[str]
twoertwein 0677b62
fix no_default
twoertwein 3e50242
Merge remote-tracking branch 'upstream/main' into pyright_general
twoertwein 27e8f80
specify pyright version only once
twoertwein 0780eb6
Merge branch 'main' into pyright_general
twoertwein 0aba5d0
TYP: remove mypy ignore from localization.py (#47240)
Moisan a596b6b
specify pyright version only once
twoertwein 2722726
Merge branch 'pyright_general' of github.com:twoertwein/pandas into p…
twoertwein cfdd75e
bump pyright
twoertwein 5b56fcc
Merge branch 'main' into pyright_general
twoertwein 1055b2f
Update pyright_reportGeneralTypeIssues.json
mroeschke 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 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 |
---|---|---|
|
@@ -93,7 +93,19 @@ repos: | |
pass_filenames: false | ||
types: [python] | ||
stages: [manual] | ||
additional_dependencies: ['[email protected]'] | ||
additional_dependencies: &pyright_dependencies | ||
- [email protected] | ||
- repo: local | ||
hooks: | ||
- id: pyright_reportGeneralTypeIssues | ||
name: pyright reportGeneralTypeIssues | ||
entry: pyright --skipunannotated -p pyright_reportGeneralTypeIssues.json | ||
# note: assumes python env is setup and activated | ||
language: node | ||
pass_filenames: false | ||
types: [python] | ||
stages: [manual] | ||
additional_dependencies: *pyright_dependencies | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
|
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,127 @@ | ||
# this becomes obsolet when reportGeneralTypeIssues can be enabled in pyproject.toml | ||
mroeschke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
"typeCheckingMode": "off", | ||
"reportGeneralTypeIssues": true, | ||
"include": | ||
[ | ||
"pandas", | ||
"typings" | ||
], | ||
"exclude": | ||
[ | ||
# exclude tests | ||
"pandas/tests", | ||
# and all files that currently don't pass | ||
"pandas/_config/config.py", | ||
"pandas/core/algorithms.py", | ||
"pandas/core/apply.py", | ||
"pandas/core/array_algos/take.py", | ||
"pandas/core/arrays/_mixins.py", | ||
"pandas/core/arrays/_ranges.py", | ||
"pandas/core/arrays/arrow/array.py", | ||
"pandas/core/arrays/base.py", | ||
"pandas/core/arrays/boolean.py", | ||
"pandas/core/arrays/categorical.py", | ||
"pandas/core/arrays/datetimelike.py", | ||
"pandas/core/arrays/datetimes.py", | ||
"pandas/core/arrays/interval.py", | ||
"pandas/core/arrays/masked.py", | ||
"pandas/core/arrays/numeric.py", | ||
"pandas/core/arrays/period.py", | ||
"pandas/core/arrays/sparse/array.py", | ||
"pandas/core/arrays/sparse/dtype.py", | ||
"pandas/core/arrays/string_.py", | ||
"pandas/core/arrays/string_arrow.py", | ||
"pandas/core/arrays/timedeltas.py", | ||
"pandas/core/common.py", | ||
"pandas/core/computation/align.py", | ||
"pandas/core/construction.py", | ||
"pandas/core/describe.py", | ||
"pandas/core/dtypes/base.py", | ||
"pandas/core/dtypes/cast.py", | ||
"pandas/core/dtypes/common.py", | ||
"pandas/core/dtypes/concat.py", | ||
"pandas/core/dtypes/dtypes.py", | ||
"pandas/core/frame.py", | ||
"pandas/core/generic.py", | ||
"pandas/core/groupby/generic.py", | ||
"pandas/core/groupby/groupby.py", | ||
"pandas/core/groupby/grouper.py", | ||
"pandas/core/groupby/ops.py", | ||
"pandas/core/indexers/objects.py", | ||
"pandas/core/indexers/utils.py", | ||
"pandas/core/indexes/base.py", | ||
"pandas/core/indexes/category.py", | ||
"pandas/core/indexes/datetimelike.py", | ||
"pandas/core/indexes/datetimes.py", | ||
"pandas/core/indexes/extension.py", | ||
"pandas/core/indexes/interval.py", | ||
"pandas/core/indexes/multi.py", | ||
"pandas/core/indexes/numeric.py", | ||
"pandas/core/indexes/period.py", | ||
"pandas/core/indexes/range.py", | ||
"pandas/core/indexing.py", | ||
"pandas/core/internals/api.py", | ||
"pandas/core/internals/array_manager.py", | ||
"pandas/core/internals/base.py", | ||
"pandas/core/internals/blocks.py", | ||
"pandas/core/internals/concat.py", | ||
"pandas/core/internals/construction.py", | ||
"pandas/core/internals/managers.py", | ||
"pandas/core/missing.py", | ||
"pandas/core/nanops.py", | ||
"pandas/core/resample.py", | ||
"pandas/core/reshape/concat.py", | ||
"pandas/core/reshape/merge.py", | ||
"pandas/core/reshape/pivot.py", | ||
"pandas/core/reshape/reshape.py", | ||
"pandas/core/reshape/tile.py", | ||
"pandas/core/series.py", | ||
"pandas/core/sorting.py", | ||
"pandas/core/strings/accessor.py", | ||
"pandas/core/tools/datetimes.py", | ||
"pandas/core/tools/timedeltas.py", | ||
"pandas/core/util/hashing.py", | ||
"pandas/core/util/numba_.py", | ||
"pandas/core/window/ewm.py", | ||
"pandas/core/window/expanding.py", | ||
"pandas/core/window/rolling.py", | ||
"pandas/io/common.py", | ||
"pandas/io/excel/_base.py", | ||
"pandas/io/excel/_odfreader.py", | ||
"pandas/io/excel/_odswriter.py", | ||
"pandas/io/excel/_openpyxl.py", | ||
"pandas/io/excel/_pyxlsb.py", | ||
"pandas/io/excel/_xlrd.py", | ||
"pandas/io/formats/csvs.py", | ||
"pandas/io/formats/excel.py", | ||
"pandas/io/formats/format.py", | ||
"pandas/io/formats/info.py", | ||
"pandas/io/formats/printing.py", | ||
"pandas/io/formats/style.py", | ||
"pandas/io/formats/style_render.py", | ||
"pandas/io/formats/xml.py", | ||
"pandas/io/json/_json.py", | ||
"pandas/io/parquet.py", | ||
"pandas/io/parsers/arrow_parser_wrapper.py", | ||
"pandas/io/parsers/base_parser.py", | ||
"pandas/io/parsers/c_parser_wrapper.py", | ||
"pandas/io/parsers/python_parser.py", | ||
"pandas/io/parsers/readers.py", | ||
"pandas/io/pytables.py", | ||
"pandas/io/sas/sas7bdat.py", | ||
"pandas/io/sas/sasreader.py", | ||
"pandas/io/sql.py", | ||
"pandas/io/stata.py", | ||
"pandas/io/xml.py", | ||
"pandas/plotting/_core.py", | ||
"pandas/plotting/_matplotlib/converter.py", | ||
"pandas/plotting/_matplotlib/core.py", | ||
"pandas/plotting/_matplotlib/hist.py", | ||
"pandas/plotting/_matplotlib/misc.py", | ||
"pandas/plotting/_matplotlib/style.py", | ||
"pandas/plotting/_matplotlib/timeseries.py", | ||
"pandas/plotting/_matplotlib/tools.py", | ||
"pandas/tseries/frequencies.py", | ||
], | ||
} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for pyright see microsoft/pyright#3546 (comment)