Skip to content

Commit

Permalink
πŸ”§ MAINTAIN: update pre-commit version and hooks (#130)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- git://github.com/pre-commit/pre-commit-hooks: v2.2.3 β†’ v4.0.1
- [github.com/mgedmin/check-manifest: 0.39 β†’ 0.46](mgedmin/check-manifest@0.39...0.46)
- [github.com/psf/black: stable β†’ 21.7b0](psf/black@stable...21.7b0)
- [github.com/PyCQA/pylint: pylint-2.4.2 β†’ v2.9.5](pylint-dev/pylint@pylint-2.4.2...v2.9.5)

* Change exception raising to use 'from' syntax

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Bump pre-commit version

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: foster999 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and foster999 authored Aug 4, 2021
1 parent 7b1cad6 commit 7bd3fdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:

- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
rev: v4.0.1
hooks:
- id: check-json
- id: check-yaml
Expand All @@ -11,17 +11,17 @@ repos:
".xml"

- repo: https://github.com/mgedmin/check-manifest
rev: "0.39"
rev: "0.46"
hooks:
- id: check-manifest

- repo: https://github.com/psf/black
rev: stable
rev: 21.7b0
hooks:
- id: black

- repo: https://github.com/PyCQA/pylint
rev: pylint-2.4.2
rev: v2.9.5
hooks:
- id: pylint
args:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_version():
"bs4",
"rinohtype",
],
"code_style": ["pre-commit==2.6"],
"code_style": ["pre-commit==2.13.0"],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down
6 changes: 4 additions & 2 deletions sphinx_tabs/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,10 @@ def run(self):
else:
try:
tab_name = LEXER_MAP[self.arguments[0]]
except:
raise ValueError("Lexer not implemented: {}".format(self.arguments[0]))
except KeyError as invalid_lexer_error:
raise ValueError(
"Lexer not implemented: {}".format(self.arguments[0])
) from invalid_lexer_error

self.tab_classes.add("code-tab")

Expand Down

0 comments on commit 7bd3fdb

Please sign in to comment.