From a07b73affcadedfa411769e8261e6e0cdb328e05 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:53:08 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#358) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester --- .pre-commit-config.yaml | 6 +++--- jupyter_core/paths.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4e7f89..7088015 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.2 + rev: 0.23.3 hooks: - id: check-github-workflows @@ -30,12 +30,12 @@ repos: - id: mdformat - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.276 + rev: v0.0.281 hooks: - id: ruff args: ["--fix"] diff --git a/jupyter_core/paths.py b/jupyter_core/paths.py index 29e1901..1d60285 100644 --- a/jupyter_core/paths.py +++ b/jupyter_core/paths.py @@ -290,8 +290,8 @@ def jupyter_path(*subdirs: str) -> List[str]: SYSTEM_CONFIG_PATH = platformdirs.site_config_dir( APPNAME, appauthor=False, multipath=True ).split(os.pathsep) -else: - if os.name == "nt": # noqa +else: # noqa: PLR5501 + if os.name == "nt": programdata = os.environ.get("PROGRAMDATA", None) if programdata: # noqa SYSTEM_CONFIG_PATH = [os.path.join(programdata, "jupyter")] diff --git a/pyproject.toml b/pyproject.toml index 9105744..1f9801b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,7 @@ dependencies = ["mypy>=0.990"] test = "mypy --install-types --non-interactive {args:.}" [tool.hatch.envs.lint] -dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.276"] +dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.281"] detached = true [tool.hatch.envs.lint.scripts] style = [