Skip to content
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

Running flake8 against code in markdown cells #14

Open
psychemedia opened this issue Sep 24, 2019 · 1 comment
Open

Running flake8 against code in markdown cells #14

psychemedia opened this issue Sep 24, 2019 · 1 comment

Comments

@psychemedia
Copy link

The flake8-markdown appears to offer support for linting code blocks in markdown files.

It would be useful if this could be applied to code blocks in notebook markdown cells, although I'm not sure how the reports could be displayed given the notebook structure (markdown cells don't have an output?), or how the code could be invoked. (The python-markdown extension might provide a useful crib in this respect?)

One possibility for the report display would be to put it into a dismissible HTML block inserted into the markdown cell just after each code block:

<div class="alert alert-danger alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert">x</button>
Report here...
</div>
@mattijn
Copy link
Owner

mattijn commented Sep 25, 2019

This needs a bit more thought before I can implement this. Open for ideas/suggestions/PRs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants