Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [pre-commit.ci] pre-commit autoupdate #1723

Merged
merged 3 commits into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
exclude: ^validation/|\.dtd$|\.xml$

- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
rev: v2.29.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -36,26 +36,26 @@ repos:
- id: absolufy-imports

- repo: https://github.com/psf/black
rev: 21.10b0
rev: 21.12b0
hooks:
- id: black-jupyter

- repo: https://github.com/asottile/blacken-docs
rev: v1.11.0
rev: v1.12.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.10b0]
additional_dependencies: [black==21.12b0]

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.1.1
rev: 1.2.2
hooks:
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.29.0]
additional_dependencies: [pyupgrade==2.29.1]

- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
Expand Down
1 change: 0 additions & 1 deletion src/pyhf/cli/complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def cli(shell):
'''Generate shell completion code for various shells.'''
click.echo(click_completion.core.get_code(shell, prog_name='pyhf'))


except ImportError:

@click.command(help='Generate shell completion code.', name='completions')
Expand Down
1 change: 0 additions & 1 deletion src/pyhf/contrib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def download(archive_url, output_directory, force=False, compress=False):
rmtree(output_directory)
_tmp_path.replace(output_directory)


except ModuleNotFoundError:
log.error(
"\nInstallation of the contrib extra is required to use pyhf.contrib.utils.download"
Expand Down