mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[ruff] Enable PERF rules and fix all violations (#9874)
This commit is contained in:
@@ -219,9 +219,8 @@ def main():
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
files = []
|
||||
for path in git_ls_files(["*.cpp"]):
|
||||
files.append(os.path.relpath(path, os.getcwd()))
|
||||
cwd = os.getcwd()
|
||||
files = [os.path.relpath(path, cwd) for path in git_ls_files(["*.cpp"])]
|
||||
|
||||
# Print initial file count if it's large
|
||||
if len(files) > 50:
|
||||
|
Reference in New Issue
Block a user