From 78933a32b840438d5ca4321798e5858941ba43f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:10:36 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v5.0.0) - [github.com/PyCQA/autoflake: v1.7.6 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v1.7.6...v2.3.1) - http://github.com/pycqa/isort: 5.10.1 → 5.13.2 - [github.com/psf/black: 22.10.0 → 24.10.0](https://github.com/psf/black/compare/22.10.0...24.10.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.19.1](https://github.com/asottile/blacken-docs/compare/v1.12.1...1.19.1) - [github.com/PyCQA/flake8: 5.0.4 → 7.1.1](https://github.com/PyCQA/flake8/compare/5.0.4...7.1.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1e9087..d149e3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: '^docs/conf.py' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -18,7 +18,7 @@ repos: args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows - repo: https://github.com/PyCQA/autoflake - rev: v1.7.6 + rev: v2.3.1 hooks: - id: autoflake args: [ @@ -28,24 +28,24 @@ repos: ] - repo: http://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 24.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: [black] - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] From d1d50d7f10e3be0f5558b4cc4979b1f51b9f2d76 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:11:05 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 1 + src/pyscaffoldext/markdown/extension.py | 1 + tests/conftest.py | 1 + 3 files changed, 3 insertions(+) diff --git a/setup.py b/setup.py index b90df8f..23f4e3a 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ + from setuptools import setup if __name__ == "__main__": diff --git a/src/pyscaffoldext/markdown/extension.py b/src/pyscaffoldext/markdown/extension.py index 116d708..900e674 100644 --- a/src/pyscaffoldext/markdown/extension.py +++ b/src/pyscaffoldext/markdown/extension.py @@ -1,4 +1,5 @@ """Extension that replaces reStructuredText by Markdown""" + from functools import partial, reduce from textwrap import dedent from typing import List diff --git a/tests/conftest.py b/tests/conftest.py index ea06db9..5e2ee5c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,7 @@ A nice option is to put your ``autouse`` fixtures here. Functions that can be imported and re-used are more suitable for the ``helpers`` file. """ + import os from pathlib import Path from tempfile import mkdtemp