severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
258 stars 90 forks source link

Feature/black format #120

Closed nklapste closed 4 years ago

nklapste commented 4 years ago

Using black formatting.

Features:

severb commented 4 years ago

Since Go's fmt, I'm all for opinionated code formatters—one less thing to worry about.

Anthchirp commented 4 years ago

I would suggest adding a file .pre-commit-config.yaml into the root directory with contents

repos:

# Automatic source code formatting
- repo: https://github.com/psf/black
  rev: stable
  hooks:
  - id: black
    args: [--safe, --quiet]

Then you can use pre-commit to ensure black is run automatically.

codecov-io commented 4 years ago

Codecov Report

Merging #120 into master will not change coverage. The diff coverage is 97.67%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #120   +/-   ##
=======================================
  Coverage   95.97%   95.97%           
=======================================
  Files           3        3           
  Lines         273      273           
=======================================
  Hits          262      262           
  Misses         11       11
Impacted Files Coverage Δ
graypy/rabbitmq.py 86.2% <100%> (ø) :arrow_up:
graypy/__init__.py 71.42% <100%> (ø) :arrow_up:
graypy/handler.py 99.51% <96.96%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7360fe4...d7a7ae8. Read the comment docs.