Page MenuHomePhabricator

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

Authored by PiRK on Apr 6 2023, 11:04.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC97b52f90be23: [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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
no_newline_empty_file
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23026
Build 45672: Build Diff
Build 45671: arc lint + arc unit