Skip to content

Commit 7bd3fdb

Browse files
πŸ”§ MAINTAIN: update pre-commit version and hooks (#130)
* [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]>
1 parent 7b1cad6 commit 7bd3fdb

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

β€Ž.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22

33
- repo: git://github.com/pre-commit/pre-commit-hooks
4-
rev: v2.2.3
4+
rev: v4.0.1
55
hooks:
66
- id: check-json
77
- id: check-yaml
@@ -11,17 +11,17 @@ repos:
1111
".xml"
1212

1313
- repo: https://github.com/mgedmin/check-manifest
14-
rev: "0.39"
14+
rev: "0.46"
1515
hooks:
1616
- id: check-manifest
1717

1818
- repo: https://github.com/psf/black
19-
rev: stable
19+
rev: 21.7b0
2020
hooks:
2121
- id: black
2222

2323
- repo: https://github.com/PyCQA/pylint
24-
rev: pylint-2.4.2
24+
rev: v2.9.5
2525
hooks:
2626
- id: pylint
2727
args:

β€Žsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_version():
3737
"bs4",
3838
"rinohtype",
3939
],
40-
"code_style": ["pre-commit==2.6"],
40+
"code_style": ["pre-commit==2.13.0"],
4141
},
4242
classifiers=[
4343
"Development Status :: 5 - Production/Stable",

β€Žsphinx_tabs/tabs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ def run(self):
250250
else:
251251
try:
252252
tab_name = LEXER_MAP[self.arguments[0]]
253-
except:
254-
raise ValueError("Lexer not implemented: {}".format(self.arguments[0]))
253+
except KeyError as invalid_lexer_error:
254+
raise ValueError(
255+
"Lexer not implemented: {}".format(self.arguments[0])
256+
) from invalid_lexer_error
255257

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

0 commit comments

Comments
Β (0)