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 #5

Merged
merged 2 commits into from
Mar 18, 2024
Merged
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 @@ -22,7 +22,7 @@ repos:
- id: check-toml
- id: check-json
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
rev: v1.5.5
hooks:
- id: remove-crlf
- repo: https://github.com/codespell-project/codespell
Expand All @@ -46,11 +46,11 @@ repos:
hooks:
- id: check-mailmap
- repo: https://github.com/rhysd/actionlint
rev: v1.6.26
rev: v1.6.27
hooks:
- id: actionlint
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
Expand All @@ -67,7 +67,7 @@ repos:
- mdformat-black
- mdformat-config
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.10.0
rev: v0.12.1
hooks:
- id: markdownlint-cli2
additional_dependencies:
Expand All @@ -78,11 +78,11 @@ repos:
- id: update-CITATION.cff
- id: update-pyproject.toml
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/pydocstyle
Expand All @@ -92,11 +92,11 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/kumaraditya303/mirrors-pyright
rev: v1.1.335
rev: v1.1.354
hooks:
- id: pyright
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.8
hooks:
- id: bandit
args:
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

https://www.sphinx-doc.org/en/master/usage/configuration.html
"""

from repl_python_wakatime import __version__ as version # type: ignore
from repl_python_wakatime._metainfo import ( # type: ignore
author,
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
r"""Provide ``__version__`` for
`importlib.metadata.version() <https://docs.python.org/3/library/importlib.metadata.html#distribution-versions>`_.
"""

try:
from ._version import __version__, __version_tuple__ # type: ignore
except ImportError: # for setuptools-generate
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/hooks/codestats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<https://gitlab.com/code-stats/code-stats-vim/-/blob/master/pythonx/codestats.py>
`_.
"""

import json
import logging
import threading
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/hooks/wakatime.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Refer `create-plugin <https://wakatime.com/help/creating-plugin>`_.
"""

import os
from subprocess import Popen # nosec: B404
from typing import Any, Callable
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/ipython.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""ipython
==========
"""

from typing import Any, Callable

from IPython.terminal.interactiveshell import TerminalInteractiveShell
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/ptpython.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""ptpython
===========
"""

from typing import Any, Callable

from prompt_toolkit.formatted_text import AnyFormattedText
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/python.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""python
=========
"""

import sys
from typing import Any, Callable

Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/utils/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""API
======
"""

import logging

import keyring
Expand Down
1 change: 1 addition & 0 deletions src/repl_python_wakatime/utils/project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Project
==========
"""

import os
from typing import Callable

Expand Down
1 change: 1 addition & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
r"""Test API
============
"""

import pytest

from repl_python_wakatime.hooks.codestats import CodeStats
Expand Down
1 change: 1 addition & 0 deletions tests/test_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test Project
===============
"""

import os
from pathlib import Path

Expand Down
Loading