nodejs / gyp-next

A fork of the GYP build system for use in the Node.js projects
BSD 3-Clause "New" or "Revised" License
125 stars 69 forks source link

chore: Use Python dict and list comprehensions #194

Closed cclauss closed 1 year ago

cclauss commented 1 year ago

https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4

% ruff --select=C4 --statistics .

8   C408    [*] Unnecessary `dict` call (rewrite as a literal)
5   C416    [*] Unnecessary `list` comprehension (rewrite using `list()`)

% ruff --select=C4 --fix .

Found 13 errors (13 fixed, 0 remaining).