-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'johan/ruff' into python
- Loading branch information
Showing
21 changed files
with
38 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
# Disable all categories since we're running ruff instead, but VSCode insists on | ||
# invoking pylint all the time | ||
[MESSAGES CONTROL] | ||
disable= | ||
consider-using-max-builtin, | ||
disallowed-name, | ||
fixme, | ||
global-statement, | ||
invalid-name, | ||
line-too-long, | ||
missing-class-docstring, | ||
missing-function-docstring, | ||
missing-module-docstring, | ||
protected-access, # Used a lot in tests, maybe make this tests-specific? | ||
too-few-public-methods, | ||
too-many-arguments, | ||
too-many-branches, | ||
too-many-instance-attributes, | ||
too-many-locals, | ||
too-many-return-statements, | ||
too-many-statements, | ||
wrong-import-order, | ||
wrong-import-position, | ||
disable=E,W,R,C,F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,7 +194,6 @@ def print_users_when_process_started(fd: int, process: px_process.PxProcess) -> | |
|
||
|
||
def to_ipc_lines(ipc_map: px_ipc_map.IpcMap) -> Iterable[str]: | ||
|
||
return_me = [] | ||
for target in sorted(ipc_map.keys(), key=operator.attrgetter("name", "pid")): | ||
channels = ipc_map[target] | ||
|
@@ -234,7 +233,6 @@ def print_cwd_friends(fd, process, all_processes, all_files): | |
def print_fds( | ||
fd: int, process: px_process.PxProcess, processes: Iterable[px_process.PxProcess] | ||
) -> None: | ||
|
||
# It's true, I measured it myself /[email protected] | ||
println( | ||
fd, | ||
|
@@ -299,7 +297,6 @@ def print_fds( | |
|
||
|
||
def print_start_time(fd: int, process: px_process.PxProcess) -> None: | ||
# pylint: disable=consider-using-f-string | ||
println( | ||
fd, | ||
"{} {} was started by {}, at {}.".format( | ||
|
@@ -312,7 +309,6 @@ def print_start_time(fd: int, process: px_process.PxProcess) -> None: | |
|
||
if process.cpu_time_seconds and process.age_seconds: | ||
cpu_percent = 100.0 * process.cpu_time_seconds / process.age_seconds | ||
# pylint: disable=consider-using-f-string | ||
println( | ||
fd, | ||
"{} has been its average CPU usage since then, or {}/{}".format( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.