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.
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.The huge number of errors that were reported by
pre-committhat resulted in the disabling of theimport-errormessage in the first place I think stem from the way in whichpre-commitwas configured to runpylintwhich was to use the action from thepylintrepository. This meant a dedicated virtual environment was used and none of the packages inrequirements-dev.txtwere installed in the isolated virtual environment that is used (seepre-commit#157). The solution as described in the discussion of that thread (see comment) is to create a local hook and have it use the system environmentspylintwhich is why.pre-commit-config.yamlhas been modified.In addition I have...
versioneer.pyfrom being linted because it is not a component ofpandasand failed linting.as it failed to import key libraries. Its a script used in anotherpre-commitlocal hook that checks minimum version of dependencies are aligned and not a componentpandas`.vultureas a required package torequirements-dev.py/environment.yamlas it was the cause of somepylintimport-error.pylintimport-erroraround...import zoneinfo(and updated the code that checks for compatability with Python 3.9) inpandas/tests/indexes/datetimes/test_constructors.py.from py.path import local as LocalPathinpandas/tests/io/excel/test_readers.py/pandas/tests/io/pytables/test_read.py/pandas/tests/io/sas/test_sas7bdat.py