diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5082d70..a52eca9 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.4.0 + rev: v6.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: v2.0.0 + rev: v2.4.0 hooks: - id: autoflake args: [ @@ -28,24 +28,24 @@ repos: ] - repo: http://github.com/pycqa/isort - rev: 5.10.1 + rev: 9.0.0b5 hooks: - id: isort -- repo: https://github.com/psf/black - rev: 22.10.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black language_version: python3 - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.20.0 hooks: - id: blacken-docs additional_dependencies: [black] - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] diff --git a/setup.py b/setup.py index 45fbcdc..71f8dd4 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,12 @@ """ - Setup file for pyscaffoldext-custom-extension. - Use setup.cfg to configure your project. +Setup file for pyscaffoldext-custom-extension. +Use setup.cfg to configure your project. - This file was generated with PyScaffold 4.0b3. - PyScaffold helps you to put up the scaffold of your new Python project. - Learn more under: https://pyscaffold.org/ +This file was generated with PyScaffold 4.0b3. +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/custom_extension/extension.py b/src/pyscaffoldext/custom_extension/extension.py index 4fca6a6..d590beb 100644 --- a/src/pyscaffoldext/custom_extension/extension.py +++ b/src/pyscaffoldext/custom_extension/extension.py @@ -1,4 +1,5 @@ """Main logic to create custom extensions""" + from functools import partial, reduce from typing import List diff --git a/tests/conftest.py b/tests/conftest.py index 3a40fb6..6827a27 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 logging import os