forked from giampaolo/psutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into get_open_files_thread
* master: use 'with open' to make sure file is closed test_process_create_time: always test against the rounded time too don't test physical cpu count on systems that don't include it don't test num_ctx_switches on unsupported kernels fix compilation warning about possible misuse of XDECREF fix race condition in wait_for_file fix flake8 error fix permission errors when running from /root fix giampaolo#607: DUPLEX_UNKNOWN is not defined on old RedHat versions fix giampaolo#606: Process.parent() may swallow NoSuchProcess exceptions (#race-condition) attempt to fix xargs on OSX giampaolo#602: move pre-commit hook into a separate file fix giampaolo#602: add GIT pre-commit hook fix failing test on Windows C styling: if unification forgot to close the handle fix giampaolo#599 (Windows): process name() can now be determined for all PIDs add test windows: refactoring of the alternative process info implementation fix typo in documentation
- Loading branch information
Showing
23 changed files
with
549 additions
and
774 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# This script gets executed on "git commit -am '...'". | ||
# You can install it with "make install-git-hooks". | ||
|
||
# pdb | ||
pdb=`git diff --cached --name-only | \ | ||
grep -E '\.py$' | \ | ||
xargs grep -n -H -E '(pdb\.set_trace\(\))'` | ||
if [ ! -z "$pdb" ] ; then | ||
echo "commit aborted: you forgot a pdb in your python code" | ||
echo $pdb | ||
exit 1 | ||
fi | ||
|
||
# flake8 | ||
flake8=`git diff --cached --name-only | grep -E '\.py$'` | ||
if [ ! -z "$flake8" ] ; then | ||
flake8=`echo "$flake8" | xargs flake8` | ||
if [ ! -z "$flake8" ] ; then | ||
echo "commit aborted: python code is not flake8-compliant" | ||
echo $flake8 | ||
exit 1 | ||
fi | ||
fi |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include .git-pre-commit | ||
include .gitignore | ||
include .travis.yml | ||
include CREDITS | ||
|
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
Oops, something went wrong.