Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15367 [Python] Improve Classes and Methods Docstrings for 8.0.0
  3. ARROW-15321

[Dev][Archery] numpydoc validation doesn't check all class methods

    XMLWordPrintableJSON

Details

    Description

      From discussion at https://github.com/apache/arrow/pull/12076#discussion_r783810077

      It seems that by default, it doesn't loop over all methods of classes, but only module-level objects?

      For example, I notice that explicitly asking for pyarrow.Table.to_pandas catches some issues:

      $ archery numpydoc pyarrow.Table.to_pandas --allow-rule PR10
      INFO:archery:Running Python docstring linters
      PR10: Parameter "categories" requires a space before the colon separating the parameter name and type
      PR10: Parameter "use_threads" requires a space before the colon separating the parameter name and type
      

      But with the default (check all of pyarrow) with archery numpydoc --allow-rule PR10 it doesn't list those errors.

      cc kszucs amol-

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h
                  5h