Add line-specific # noqa to infixowl.py
, remove exclusion from pyproject.toml · Pull Request #1994 · RDFLib/rdflib (original) (raw)
Summary of changes
Preparation for work on i) increasing test coverage of extras/infixowl.py
and ii) extending/adding documentation of same
This PR merely adds line-specific # noqa NXXX
pragmas. As a help to reviewers (the pragmas force a re-blacking and necessitates re-positioning of the pragmas, making it more tedious to see past), there's a command-line reproduction check:
$ cat rdfib/extras/infixowl.py | sed -f apply-noqa-to-infixowl.txt > rdfib/extras/infixowl-noqa.py # ¹ $ flake8 rdfib/extras/infixowl-noqa.py $ black rdfib/extras/infixowl-noqa.py $ cat rdfib/extras/infixowl-noqa.py | sed -f apply-noqa-to-reblacked-infixowl.txt > rdfib/extras/infixowl.py # ² $ flake8 rdfib/extras/infixowl.py $ rm rdfib/extras/infixowl-noqa.py
¹ apply-noqa-to-infixowl.txt
² apply-noqa-to-reblacked-infixowl.txt
Checklist
- Checked that there aren't other open pull requests for the same change.
- Checked that all tests and type checking passes.
- Considered granting push permissions to the PR branch,
so maintainers can fix minor issues and keep your PR up to date.