flake8-rst icon indicating copy to clipboard operation
flake8-rst copied to clipboard

custom roles not working…?

Open afeld opened this issue 5 years ago • 0 comments

I was making an included file in the pandas documentation. Since the included file uses a variable from the parent, flake8-rst gave a F821 undefined name warning. I tried adding :flake8-add-ignore: F821, but continued to get the same error.

https://github.com/afeld/pandas/commit/3caffaa69185f69727fc394458be57308d7a27b3

$ flake8-rst --version
0.7.2 (flake8-comprehensions: 3.3.0, mccabe: 0.6.1, pycodestyle: 2.6.0, pyflakes: 2.2.0) CPython 3.8.6 on Linux

I'm relatively new to reStructuredText/Sphinx, so:

  • It's very possible I'm just not using it right
  • I wasn't sure of the best way to create a minimal example to reproduce
    • Trying any flake8-rst commands in a sphinx-quickstarted directory would give

      AttributeError: module 'flake8.main.options' has no attribute 'register_preliminary_options'
      

Any suggestions would be appreciated. Thanks!

afeld avatar Jan 01 '21 22:01 afeld