Skip to content

Commit 94c2f21

Browse files
TiecoonEric Hennenfent
authored andcommitted
Enforce black formatting (#1466)
* Enforce black formatting * Update travis black command
1 parent a0966dc commit 94c2f21

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- stage: format
4141
env: TEST_TYPE=format
4242
script:
43-
- git diff --name-only $TRAVIS_COMMIT_RANGE | python3 scripts/pyfile_exists.py | xargs black -t py36 -l 100 --check
43+
- git diff --name-only $TRAVIS_COMMIT_RANGE | python3 scripts/pyfile_exists.py | xargs black --check
4444
- stage: prepare
4545
env: TEST_TYPE=env
4646
script:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Some pull request guidelines:
3232

3333
- We use the [`black`](https://black.readthedocs.io/en/stable/index.html) auto-formatter
3434
to enforce style conventions in Manticore. To ensure your code is properly
35-
formatted, run `black -t py36 -l 100 .` in the manticore directory before
35+
formatted, run `black .` in the manticore directory before
3636
committing.
3737
- Minimize irrelevant changes (formatting, whitespace, etc) to code that would
3838
otherwise not be touched by this patch. Save formatting or style corrections

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.black]
2+
target-version = ['py36']
3+
line-length = 100

0 commit comments

Comments
 (0)