splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
376 stars 180 forks source link

use black to format python code #382

Closed li-wu closed 4 years ago

li-wu commented 4 years ago
  1. Introduce black as code format tool;
    • Format all python code using black make format-all
    • Format changed or newly added python codes using black before commit: make format

And you can still use flake8 to lint the code:

  1. All changed python files are formatted using black

  2. Fix some issues reported by flake8

    • unused imports
    • unused variables
    • ambiguous variables