Skip to content

Commit

Permalink
Configure black to use pipenv (braintreeps#138)
Browse files Browse the repository at this point in the history
Since we're already checking for a Pipfile, we can tell the plugin to
run Black via pipenv. This prevents having to also install Black outside
the virtualenv.
  • Loading branch information
pgr0ss authored Aug 12, 2019
1 parent 1e44fa9 commit 6eb549d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ let g:ale_fix_on_save = 1
let black = system('grep -q black Pipfile')
if v:shell_error == 0
let g:ale_fixers['python'] = ['black']
let g:ale_python_black_auto_pipenv = 1
endif

let html_use_css=1
Expand Down

0 comments on commit 6eb549d

Please sign in to comment.