diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12fe5de5..367e1345 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/jupyter_releaser/tee.py b/jupyter_releaser/tee.py index 7233872d..b5a4e008 100644 --- a/jupyter_releaser/tee.py +++ b/jupyter_releaser/tee.py @@ -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: diff --git a/jupyter_releaser/util.py b/jupyter_releaser/util.py index 0823fc73..c9f76058 100644 --- a/jupyter_releaser/util.py +++ b/jupyter_releaser/util.py @@ -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