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
Lint
Lint Not Applicable
Unit
Tests Not Applicable