I have reformatted the Python code in this project using yapf, following Google's conventions and minimizing changes to the code as much as possible. Additionally, I have created a .git-blame-ignore-revs file to address the issue with git blame that was raised in PR #79.
Improve coding style
Description
I have reformatted the Python code in this project using yapf, following Google's conventions and minimizing changes to the code as much as possible. Additionally, I have created a .git-blame-ignore-revs file to address the issue with git blame that was raised in PR #79.
If there are certain parts of your code that you do not want to be formatted, you can use
# yapf: disable
and# yapf: enable
to wrap them. For example, I have disabled auto formatting for the__slots__
ofNFlow
. https://github.com/ssrtw/nfstream/blob/add-formatter/nfstream/flow.py#L113Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Using the
tests.py
scriptTest Configuration:
Checklist: