Loading pre_commit_pylint.py +7 −0 Original line number Diff line number Diff line # Copyright 2020 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Run pylint from pre-commit with project dependencies installed """ Loading Loading @@ -27,6 +33,7 @@ __version__ = '0.3' ) @click.argument('files', nargs=-1) def main(extras, fail_under, files): """Invoke Pylint on the given files after ensuring dependencies are up to date""" join = ','.join cmd = [ 'pip', 'install', '--upgrade', '--editable', Loading Loading
pre_commit_pylint.py +7 −0 Original line number Diff line number Diff line # Copyright 2020 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Run pylint from pre-commit with project dependencies installed """ Loading Loading @@ -27,6 +33,7 @@ __version__ = '0.3' ) @click.argument('files', nargs=-1) def main(extras, fail_under, files): """Invoke Pylint on the given files after ensuring dependencies are up to date""" join = ','.join cmd = [ 'pip', 'install', '--upgrade', '--editable', Loading