mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
feat: Upgrade Python linting from flake8 to ruff (#2815)
[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) including bandit, isort, pylint, pyupgrade, and flake8 plus its plugins and is written in Rust for speed. This GitHub Action will provide contributors with intuitive GitHub Annotations.  The `Required` in the checks below should be: 1. Removed from `flake8-annotation` and added to `ruff-annotation` which replaces it. 2. Removed from `isort` and added to `ruff` which replaces it.
This commit is contained in:
parent
39ac2c135d
commit
fc0ddc6523
3 changed files with 9 additions and 6 deletions
|
@ -24,7 +24,7 @@ import gyp
|
|||
import gyp.common
|
||||
import gyp.msvs_emulation
|
||||
import shlex
|
||||
import xml.etree.cElementTree as ET
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
generator_wants_static_library_dependencies_adjusted = False
|
||||
|
||||
|
|
|
@ -2770,7 +2770,7 @@ class PBXProject(XCContainerPortal):
|
|||
self.path = path
|
||||
self._other_pbxprojects = {}
|
||||
# super
|
||||
return XCContainerPortal.__init__(self, properties, id, parent)
|
||||
XCContainerPortal.__init__(self, properties, id, parent)
|
||||
|
||||
def Name(self):
|
||||
name = self.path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue