HomePhabricator

[lint] don't add newline to empty python files

Description

[lint] don't add newline to empty python files

Summary: It can make sense to have an empty __init__.py in a python subpackage. An empty file does not need f-strings, so return early.

Test Plan: Run arc lint --everything and check that test/functional/test_framework/__init__.py is untouched

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13597

Details

Provenance
PiRKAuthored on Apr 6 2023, 10:53
PiRKPushed on Apr 6 2023, 12:05
Reviewer
Restricted Project
Differential Revision
D13597: [lint] don't add newline to empty python files
Parents
rABC0b6c042c33c6: [lint] fix parsing of severity in mypy output
Branches
Unknown
Tags
Unknown