Skip to content

Commit

Permalink
update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 31, 2022
1 parent 7ae1f8e commit 328d563
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
repos:
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.9.0
rev: v3.0.1
hooks:
- id: reorder-python-imports
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v2.6.1
hooks:
- id: prettier
- repo: https://gitlab.com/pycqa/flake8
rev: "3.8.4"
rev: "3.9.2"
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.1.0
hooks:
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a3
rev: v3.0.0a4
hooks:
- id: pylint
args: [--disable=all, --enable=unused-import]
2 changes: 1 addition & 1 deletion jupyter_releaser/tee.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from subprocess import list2cmdline as join # pylint: disable=ungrouped-imports


STREAM_LIMIT = 2 ** 23 # 8MB instead of default 64kb, override it if you need
STREAM_LIMIT = 2**23 # 8MB instead of default 64kb, override it if you need


async def _read_stream(stream: StreamReader, callback: Callable[..., Any]) -> None:
Expand Down
4 changes: 2 additions & 2 deletions jupyter_releaser/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def get_version():
elif PYPROJECT.exists():
text = PYPROJECT.read_text(encoding="utf-8")
data = toml.loads(text)
project = data.get('project', {})
version = project.get('version')
project = data.get("project", {})
version = project.get("version")
if not version: # pragma: no cover
raise ValueError("No version identifier could be found!")
return version
Expand Down

0 comments on commit 328d563

Please sign in to comment.