diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8705ccc..572d9b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -49,7 +49,7 @@ repos: - repo: https://github.com/jumanjihouse/pre-commit-hooks # temp fix for pre-commit breakage in shellcheck # https://github.com/jumanjihouse/pre-commit-hooks/issues/82 - rev: 2.1.5 + rev: 3.0.0 hooks: # as of Feb 2020, error with ruby 3.0 # https://github.com/jumanjihouse/pre-commit-hooks/issues/86 @@ -73,22 +73,22 @@ repos: # https://github.com/igorshubovych/markdownlint-cli # node version of markdownlint with better disabling of checks - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.29.0 + rev: v0.43.0 hooks: - id: markdownlint # https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/ # https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.910-1' + rev: 'v1.14.0' hooks: - id: mypy - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 + rev: 7.1.1 hooks: - id: flake8 - repo: https://github.com/pycqa/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle @@ -109,13 +109,13 @@ repos: # https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/ - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 24.10.0 hooks: - id: black language_version: python3.9 args: [-l 79] # check shell scripts you check in - - repo: git://github.com/detailyang/pre-commit-shell + - repo: https://github.com/detailyang/pre-commit-shell rev: 1.0.5 hooks: - id: shell-lint diff --git a/setup.py b/setup.py index dfc7cff..3dfcefe 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup for Pytong.""" + import setuptools # type: ignore with open("README.md", "r", encoding="utf-8") as fh: diff --git a/src/pytong/__init__.py b/src/pytong/__init__.py index 31aa698..01fb7fe 100644 --- a/src/pytong/__init__.py +++ b/src/pytong/__init__.py @@ -1,4 +1,5 @@ """Initialize and bring in modules.""" + from .log import Log # noqa from .base import BaseLog # noqa from .config import log_config # noqa diff --git a/src/pytong/base.py b/src/pytong/base.py index 5d06e71..51c4787 100644 --- a/src/pytong/base.py +++ b/src/pytong/base.py @@ -2,6 +2,7 @@ Base mainly includes the description fields """ + import logging from typing import Optional diff --git a/src/pytong/log.py b/src/pytong/log.py index c9e81a1..bee4c12 100644 --- a/src/pytong/log.py +++ b/src/pytong/log.py @@ -2,6 +2,7 @@ Logging with a tree of loggers """ + import logging from pathlib import Path from typing import Optional diff --git a/tests/test_log.py b/tests/test_log.py index d03991b..704787b 100644 --- a/tests/test_log.py +++ b/tests/test_log.py @@ -3,6 +3,7 @@ Assumes that you are pip installing, so for development run pip install -e """ + import sys print(f"{__name__=} {sys.path=}")