Skip to content

Commit

Permalink
chore: update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Sep 24, 2020
1 parent 0e72036 commit 884e3e3
Show file tree
Hide file tree
Showing 5 changed files with 9 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,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -20,7 +20,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
rev: v0.6.13
hooks:
- id: cmake-format
additional_dependencies: [pyyaml]
Expand All @@ -39,7 +39,7 @@ repos:
files: src

- repo: https://github.com/mgedmin/check-manifest
rev: "0.42"
rev: "0.43"
hooks:
- id: check-manifest
stages: [manual]
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,4 @@
extras["all"] = sum(extras.values(), [])
extras["dev"] += extras["test"]

setup(
ext_modules=ext_modules, extras_require=extras,
)
setup(ext_modules=ext_modules, extras_require=extras)
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def __init__(self, edges, **kwargs):
elif options == {"underflow"}:
self._ax = ca.variable_uflow(edges)
elif options == {"overflow"}:
self._ax = ca.variable_oflow(edges,)
self._ax = ca.variable_oflow(edges)
elif options == {"circular", "underflow", "overflow",} or options == {
"circular",
"overflow",
Expand Down
8 changes: 2 additions & 6 deletions tests/test_minihist_title.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,9 @@ def name(self):
class Regular(bh.axis.Regular, AxesMixin):
__slots__ = ()

def __init__(
self, bins, start, stop, name,
):
def __init__(self, bins, start, stop, name):

super(Regular, self).__init__(
bins, start, stop,
)
super(Regular, self).__init__(bins, start, stop)

self._ax.metadata["name"] = name

Expand Down
2 changes: 1 addition & 1 deletion tests/test_pickles.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@pytest.mark.xfail(
env.PY2, raises=TypeError, reason="Python3 pickle can't be read in Python 2"
)
@pytest.mark.parametrize("version", ["0.10.2", "0.6.2",])
@pytest.mark.parametrize("version", ["0.10.2", "0.6.2"])
def test_read_pickle(version):

filename = os.path.join(DIR, "pickles", "bh_{}.pkl".format(version))
Expand Down

0 comments on commit 884e3e3

Please sign in to comment.