Skip to content

Commit accae0b

Browse files
author
Rémy HUBSCHER
authored
Merge pull request #204 from Kinto/run-black
Run black
2 parents 5dee306 + b7bb3c7 commit accae0b

25 files changed

+1933
-1791
lines changed

.therapist.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
actions:
2+
black:
3+
run: black --check {files}
4+
fix: black {files}
5+
include: "*.py"
6+
exclude:
7+
- .venv/
8+
9+
flake8:
10+
run: flake8 {files}
11+
include: "*.py"
12+
exclude:
13+
- .venv/

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ functional: install-dev need-kinto-running
4242
tests: install-dev need-kinto-running
4343
$(VENV)/bin/py.test -f kinto_http/tests/ kinto_http/tests/functional.py
4444

45+
flake8: install-dev
46+
$(VENV)/bin/flake8 kinto_http
47+
48+
black: install-dev
49+
$(VENV)/bin/black kinto_http
50+
4551
clean:
4652
find . -name '*.pyc' -delete
4753
find . -name '__pycache__' -type d | xargs rm -fr

README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,3 +580,10 @@ In another, run the tests against it:
580580
::
581581

582582
$ make tests
583+
584+
585+
(Optional) Install a git hook:
586+
587+
::
588+
589+
therapist install

dev-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
black
2+
flake8
13
pytest
24
pytest-cache
35
pytest-cov
46
pytest-xdist
57
kinto
8+
therapist
69
unidecode

0 commit comments

Comments
 (0)