From facdab0f5aacc5eb223753c42604d5de7bdaee9d Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:43:47 +0300 Subject: [PATCH] Update pre-commit. Remove docformatter --- .pre-commit-config.yaml | 20 ++++++++------------ profiler/profiler_script.py | 1 + 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2dd9da30..1fc8d7fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: 12885e376b93dc4536ad68d156065601e4433665 # frozen: v1.5.1 + rev: a30f0d816e5062a67d87c8de753cfe499672b959 # frozen: v1.5.5 hooks: - id: insert-license files: '^src/.+\.py$|^tests/.+\.py$' args: ['--license-filepath', 'LICENSE-HEADER'] - repo: https://github.com/executablebooks/mdformat - rev: 82f84976fc57d5ae61cbf2d457a26a89d4b4eef4 # frozen: 0.7.16 + rev: 08fba30538869a440b5059de90af03e3502e35fb # frozen: 0.7.17 hooks: - id: mdformat additional_dependencies: @@ -14,7 +14,7 @@ repos: - mdformat-gfm - mdformat-black - repo: https://github.com/asottile/yesqa - rev: 265e9ff7c83add4949f81bb5fe14f4a743ffb04c # frozen: v1.4.0 + rev: f2ae90cf9e1661ade79d0881186ce4fd7ba6ee79 # frozen: v1.5.0 hooks: - id: yesqa additional_dependencies: @@ -28,19 +28,15 @@ repos: files: '^src/.+\.py$' args: ['--never', '--application-directories', 'src'] - repo: https://github.com/PyCQA/isort - rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0 + rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # frozen: 23.3.0 + rev: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0 hooks: - id: black -- repo: https://github.com/myint/docformatter - rev: 8b8dae1d990e2e4fec7ff6704a79c23a403cd605 # frozen: v1.5.0 - hooks: - - id: docformatter - repo: https://github.com/pre-commit/pre-commit-hooks - rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0 + rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0 hooks: - id: check-yaml - repo: https://github.com/pre-commit/pygrep-hooks @@ -50,7 +46,7 @@ repos: - id: python-check-blanket-noqa - id: python-check-blanket-type-ignore - repo: https://github.com/PyCQA/flake8 - rev: c838a5e98878f17889cfce311e1406d252f87ec5 # frozen: 6.0.0 + rev: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1 hooks: - id: flake8 additional_dependencies: @@ -58,7 +54,7 @@ repos: - flake8-builtins - flake8-comprehensions - repo: https://github.com/pre-commit/mirrors-mypy - rev: b84480de6124681d551749528ab4b42c2269df8c # frozen: v1.2.0 + rev: d4911cfb7f1010759fde68da196036feeb25b99d # frozen: v1.11.2 hooks: - id: mypy args: ["--scripts-are-modules"] diff --git a/profiler/profiler_script.py b/profiler/profiler_script.py index 7264dc7d..ba34619d 100644 --- a/profiler/profiler_script.py +++ b/profiler/profiler_script.py @@ -4,6 +4,7 @@ - `tox -e profile` - `firefox .tox/prof/output.svg` """ + from pathlib import Path import tomli