Skip to content

Commit

Permalink
Add the 'black' uncompromising Python code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
magopian committed Aug 1, 2018
1 parent ac8463b commit 9dd7580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ clean:
rm -rf build dist
find . -name '*.pyc' -exec rm \{\} \;

flake8:
@# Do not analyse .gitignored files.
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
flake8 `git ls-files | grep "\.py$$"`
formatting:
black --check .

test: check-syntax-errors check-no-prints
@# Launch tests from openfisca_france/tests directory (and not .) because TaxBenefitSystem must be initialized
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
'test': [
'nose',
'flake8 == 3.4.1',
'black >= 18.6b4',
'scipy >= 0.17', # Only used to test de_net_a_brut reform
'yamllint >= 1.11.1, < 1.12',
],
Expand Down

0 comments on commit 9dd7580

Please sign in to comment.