Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Dec 15, 2020
1 parent 7ab3a56 commit bc9695c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/isort
rev: 5.4.2
rev: 5.6.4
hooks:
- id: isort
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
rev: 3.8.4
hooks:
- id: flake8
language_version: python3
additional_dependencies:
- flake8-pytest-style
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
rev: 1.7.0
hooks:
- id: bandit
language_version: python3
Expand Down
25 changes: 14 additions & 11 deletions piptools/scripts/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,20 @@ def cli(
installed_dists = get_installed_distributions(skip=[], user_only=user_only)
to_install, to_uninstall = sync.diff(requirements, installed_dists)

install_flags = _compose_install_flags(
finder,
no_index=no_index,
index_url=index_url,
extra_index_url=extra_index_url,
trusted_host=trusted_host,
find_links=find_links,
user_only=user_only,
cert=cert,
client_cert=client_cert,
) + shlex.split(pip_args or "")
install_flags = (
_compose_install_flags(
finder,
no_index=no_index,
index_url=index_url,
extra_index_url=extra_index_url,
trusted_host=trusted_host,
find_links=find_links,
user_only=user_only,
cert=cert,
client_cert=client_cert,
)
+ shlex.split(pip_args or "")
)
sys.exit(
sync.sync(
to_install,
Expand Down

0 comments on commit bc9695c

Please sign in to comment.