Skip to content

custom roles not working…? #25

@afeld

Description

@afeld

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.

afeld/pandas@3caffaa

$ 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions