Enable T20 (flake8-print) to ban use of print statements (#86525)
* Enable T20 (flake8-print) to ban use of print statements * Make compatible with flake8 config
This commit is contained in:
parent
c9499f6574
commit
73c4ac53d2
9 changed files with 24 additions and 30 deletions
|
@ -55,9 +55,9 @@ def empty_cache_dir(tmp_path, mock_init_cache_dir, mock_get_cache_files, request
|
|||
return
|
||||
|
||||
# Print contents of dir if failed
|
||||
print("Content of dir for", request.node.nodeid)
|
||||
print("Content of dir for", request.node.nodeid) # noqa: T201
|
||||
for fil in tmp_path.iterdir():
|
||||
print(fil.relative_to(tmp_path))
|
||||
print(fil.relative_to(tmp_path)) # noqa: T201
|
||||
|
||||
# To show the log.
|
||||
assert False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue