Closed nklapste closed 4 years ago
Since Go's fmt
, I'm all for opinionated code formatters—one less thing to worry about.
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.
Merging #120 into master will not change coverage. The diff coverage is
97.67%
.
@@ 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.
Using
black
formatting.Features:
black
formatting over all python source files.travis.yml
.pre-commit-config.yaml
for usage ofpre-commit