-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Upgrade flake8-rst version #23847
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
Changes from all commits
a2cf5ab
a300944
363d0df
6cebdb0
b3d878d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,25 +31,65 @@ exclude = | |
env # exclude asv benchmark environments from linting | ||
|
||
[flake8-rst] | ||
ignore = | ||
F821, # undefined name | ||
W391, # blank line at end of file [Seems to be a bug (v0.4.1)] | ||
ignore = E402, # module level import not at top of file | ||
W503, # line break before binary operator | ||
exclude = | ||
doc/source/whatsnew/v0.7.0.rst | ||
doc/source/whatsnew/v0.7.3.rst | ||
doc/source/whatsnew/v0.8.0.rst | ||
doc/source/whatsnew/v0.9.0.rst | ||
doc/source/whatsnew/v0.9.1.rst | ||
doc/source/whatsnew/v0.10.0.rst | ||
doc/source/whatsnew/v0.10.1.rst | ||
doc/source/whatsnew/v0.11.0.rst | ||
doc/source/whatsnew/v0.12.0.rst | ||
doc/source/whatsnew/v0.13.0.rst | ||
doc/source/whatsnew/v0.13.1.rst | ||
doc/source/whatsnew/v0.14.0.rst | ||
doc/source/whatsnew/v0.14.1.rst | ||
doc/source/whatsnew/v0.15.0.rst | ||
doc/source/whatsnew/v0.15.1.rst | ||
doc/source/whatsnew/v0.15.2.rst | ||
doc/source/whatsnew/v0.16.0.rst | ||
doc/source/whatsnew/v0.16.1.rst | ||
doc/source/whatsnew/v0.16.2.rst | ||
doc/source/whatsnew/v0.17.0.rst | ||
doc/source/whatsnew/v0.17.1.rst | ||
doc/source/whatsnew/v0.18.0.rst | ||
doc/source/whatsnew/v0.18.1.rst | ||
doc/source/whatsnew/v0.19.0.rst | ||
doc/source/whatsnew/v0.20.0.rst | ||
doc/source/whatsnew/v0.21.0.rst | ||
doc/source/whatsnew/v0.22.0.rst | ||
doc/source/whatsnew/v0.23.0.rst | ||
doc/source/whatsnew/v0.23.1.rst | ||
doc/source/whatsnew/v0.23.2.rst | ||
doc/source/whatsnew/v0.24.0.rst | ||
doc/source/10min.rst | ||
doc/source/advanced.rst | ||
doc/source/basics.rst | ||
doc/source/categorical.rst | ||
doc/source/comparison_with_r.rst | ||
doc/source/comparison_with_sql.rst | ||
doc/source/comparison_with_stata.rst | ||
doc/source/computation.rst | ||
doc/source/contributing.rst | ||
doc/source/contributing_docstring.rst | ||
doc/source/dsintro.rst | ||
doc/source/enhancingperf.rst | ||
doc/source/extending.rst | ||
doc/source/groupby.rst | ||
doc/source/indexing.rst | ||
doc/source/io.rst | ||
doc/source/merging.rst | ||
doc/source/missing_data.rst | ||
doc/source/options.rst | ||
doc/source/release.rst | ||
doc/source/reshaping.rst | ||
doc/source/timedeltas.rst | ||
doc/source/timeseries.rst | ||
doc/source/visualization.rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can do it later, but I think there are many of these that can now be removed, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd do it later after giving it a final check. I found out that if somewhere in the checked code-block is an .. ipython::
@verbatim
In [1]: df2.<TAB>
df2.A df2.bool
df2.abs df2.boxplot
df2.add df2.C
df2.add_prefix df2.clip These blocks have to be manually ignored and therefore I'm including the checks after this is merged. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I'm following, but I wouldn't overcomplicate things. I think that could be in its own block with nothing else, and have a Or I think the directive also has a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, however when running If somewhere in that block is a syntax error, However the new It's surely more complicated than just ignoring flake8-rst works on the bare *.rst files, therefore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry didn't read it correctly:
Exactly, we could put one of these
I'd prefer to use a way without |
||
|
||
|
||
[yapf] | ||
based_on_style = pep8 | ||
|
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.
aren't we adding the semicolon at the end then?
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.
ignoring
W503
allows forSo there may be a
\n
before a-
,+
...ignoring
W504
? would enforceWith a
\n
after the-
,+
, ...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.
the question was if you wanted to ignore the errors for the semicolon in
df.plot();
in this PR.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.
No, I'd rather have it on a per file based setting. It's only useful if there are many plots in one file that create cryptic outputs. If not it's better to have it checked.