Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Define builtins
Browse files Browse the repository at this point in the history
Flake8 complained about the usage of `buildout`, `system` and other
commands in docstrings.

Instead of using `noqa` comments, it is better to define those builtins
in the flake8 configuration section.

modified:   setup.cfg
modified:   zc/zdaemonrecipe/tests.py
  • Loading branch information
jugmac00 committed May 17, 2020
1 parent ebd65c1 commit 21d368e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -5,6 +5,7 @@ universal = 1

[flake8]
doctests = 1
builtins = buildout, cat, system, write

[check-manifest]
ignore =
Expand Down
2 changes: 1 addition & 1 deletion zc/zdaemonrecipe/tests.py
Expand Up @@ -66,7 +66,7 @@ def newlines_in_program():
path /sample-buildout/parts/run/transcript.log
</logfile>
</eventlog>
""" # noqa: F821
"""


def setUp(test):
Expand Down

0 comments on commit 21d368e

Please sign in to comment.