Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup for Pytong."""

import setuptools # type: ignore

with open("README.md", "r", encoding="utf-8") as fh:
Expand Down
1 change: 1 addition & 0 deletions src/pytong/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/pytong/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Base mainly includes the description fields
"""

import logging
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/pytong/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Logging with a tree of loggers
"""

import logging
from pathlib import Path
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions tests/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Assumes that you are pip installing, so for development run pip install -e
"""

import sys

print(f"{__name__=} {sys.path=}")
Expand Down
Loading