Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pylint warnings / cleanup #2218

Merged
merged 9 commits into from Apr 1, 2023
Merged

Fix pylint warnings / cleanup #2218

merged 9 commits into from Apr 1, 2023

Conversation

giampaolo
Copy link
Owner

@giampaolo giampaolo commented Mar 31, 2023

Adds a new make pylint target to run pylint against the code base. I don't want to make pylint mandatory. Don't want to run it on commit/push and reject commits, since pylint is waaaay too strict. This is just meant to be used manually from time to time. Nevertheless, running it against the whole code base for the first time revealed many places which were worth being refactored.

Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
@giampaolo giampaolo merged commit 7eadee3 into master Apr 1, 2023
21 of 22 checks passed
@giampaolo giampaolo deleted the pylint branch April 1, 2023 10:25
ddelange added a commit to ddelange/psutil that referenced this pull request Apr 11, 2023
* 'master' of https://github.com/giampaolo/psutil:
  move psutil_getpagesize() in a new mem.c file
  move psutil_virtual_mem() in a new mem.c file
  update cpu_freq() doc
  Fix Linux test: allow '-dirty' or other version postfixes (giampaolo#2221)
  Fix pylint warnings / cleanup (giampaolo#2218)
  Makefile: define num CPUs for parallel workers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant