Skip to content
#

black

Here are 285 public repositories matching this topic...

ianozsvald
ianozsvald commented Aug 20, 2021

Is there a how-to guide to write my own tool? I want to do some conditional stripping/modifying (e.g. insert a Python script into a cell) for a Kaggle notebook. I've been playing around for an hour and I've sort-of-got a tool working, but I can't get nbqa to pass in anything I can read. In my code sys.argv has the original Notebook filename and if I rewrite that, nbqa throws an exception.k

RBB-Website
siebrenf
siebrenf commented Dec 6, 2021

Hey guys, I was trying to clean up some code and came upon this super niche edge case.

Here is the minimal reproducible example. Removing one or both ifs, removing the bottom comment or replacing the ruleorder with anything else does not result in the error.

# when using nested if-statements with___
if True:
    if True:
        ruleorder: ___a_ruleorder_and___

    # __

Improve this page

Add a description, image, and links to the black topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the black topic, visit your repo's landing page and select "manage topics."

Learn more