File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
64
64
MSG=' Partially validate docstrings (EX01)' ; echo $MSG
65
65
$BASE_DIR /scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \
66
66
pandas.errors.IncompatibilityWarning \
67
+ pandas.errors.InvalidComparison \
68
+ pandas.errors.LossySetitemError \
67
69
pandas.errors.NoBufferPresent \
68
70
pandas.errors.OptionError \
69
71
pandas.errors.PerformanceWarning \
Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ Exceptions and warnings
38
38
errors.IncompatibilityWarning
39
39
errors.IndexingError
40
40
errors.InvalidColumnName
41
+ errors.InvalidComparison
41
42
errors.InvalidIndexError
42
43
errors.InvalidVersion
43
44
errors.IntCastingNaNError
45
+ errors.LossySetitemError
44
46
errors.MergeError
45
47
errors.NoBufferPresent
46
48
errors.NullFrequencyError
Original file line number Diff line number Diff line change 18
18
from collections .abc import Sequence
19
19
20
20
API_PATH = pathlib .Path ("doc/source/reference/testing.rst" ).resolve ()
21
- PRIVATE_ERRORS = frozenset (["InvalidComparison" , "LossySetitemError" ])
22
21
23
22
24
23
def get_defined_errors (content : str ) -> set [str ]:
25
24
errors = set ()
26
25
for node in ast .walk (ast .parse (content )):
27
- if ( isinstance (node , ast .ClassDef )) and ( node . name not in PRIVATE_ERRORS ):
26
+ if isinstance (node , ast .ClassDef ):
28
27
errors .add (node .name )
29
28
elif isinstance (node , ast .ImportFrom ) and node .module != "__future__" :
30
29
for alias in node .names :
31
- if alias .name not in PRIVATE_ERRORS :
32
- errors .add (alias .name )
30
+ errors .add (alias .name )
33
31
return errors
34
32
35
33
You can’t perform that action at this time.
0 commit comments