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.rst
file if fixing a bug or adding a new feature.The huge number of errors that were reported by
pre-commit
that resulted in the disabling of theimport-error
message in the first place I think stem from the way in whichpre-commit
was configured to runpylint
which was to use the action from thepylint
repository. This meant a dedicated virtual environment was used and none of the packages inrequirements-dev.txt
were 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 environmentspylint
which is why.pre-commit-config.yaml
has been modified.In addition I have...
versioneer.py
from being linted because it is not a component ofpandas
and failed linting.as it failed to import key libraries. Its a script used in another
pre-commitlocal hook that checks minimum version of dependencies are aligned and not a component
pandas`.vulture
as a required package torequirements-dev.py
/environment.yaml
as it was the cause of somepylint
import-error
.pylint
import-error
around...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 LocalPath
inpandas/tests/io/excel/test_readers.py
/pandas/tests/io/pytables/test_read.py
/pandas/tests/io/sas/test_sas7bdat.py