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

Merged
merged 3 commits into from
Feb 7, 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: 6 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.1.1
hooks:
- id: black
args:
- --diff
- --check
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pylint
rev: v3.0.0a6
rev: v3.0.3
hooks:
- id: pylint
args:
Expand All @@ -32,7 +28,7 @@ repos:
- gql[aiohttp]~=3.4.1
- pydantic~=2.5.2
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.8.0
hooks:
- id: mypy
name: mypy
Expand All @@ -42,21 +38,21 @@ repos:
- gql[aiohttp]~=3.4.1
- pydantic~=2.5.2
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort
args:
- --diff
- --check
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.281'
rev: 'v0.2.0'
hooks:
- id: ruff
name: ruff
Expand Down
1 change: 1 addition & 0 deletions exmaple_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Please fill in your credentials below before running this script.
"""

import asyncio
import logging
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/changelog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains a class based changelog generator for Python Telegram Bot."""

import asyncio
import datetime
import logging
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for ptb_changelog_helper."""

import re
from typing import Final

Expand Down
7 changes: 3 additions & 4 deletions ptb_changelog_helper/graphqlclient.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains a GraphQL client for GitHub's API."""

import datetime
import logging
from collections.abc import Collection
Expand Down Expand Up @@ -56,14 +57,12 @@ def _get_query_text(self, query_name: str) -> str:
@overload
async def _do_request(
self, *, query: str | None = None, variable_values: dict[str, Any] | None = None
) -> dict[str, Any]:
...
) -> dict[str, Any]: ...

@overload
async def _do_request(
self, *, query_name: str | None = None, variable_values: dict[str, Any] | None = None
) -> dict[str, Any]:
...
) -> dict[str, Any]: ...

async def _do_request(
self,
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This moudle contains the main entry point for the PTB changelog helper."""

import logging
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/pandoc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains functionality for converting the MD Changlelog to RST and TG HTML."""

import logging
import subprocess
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions ptb_changelog_helper/panflute_filters/html_filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# pylint: disable=duplicate-code
"""This module contains a Pandoc filter for converting to Telegram's HTML format."""

import pickle
import re
import sys
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/panflute_filters/rst_filter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=duplicate-code
"""This module contains a Pandoc filter for converting to Sphinx's reStructuredText format."""
import pickle
import re
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/ptb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""This module contains functionality for automatically updating the changelog and version
in the configured PTB repository.
"""

import logging
import re
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/send_telegram.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains functionality for sending a HTML message to a Telegram chat."""

import logging
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions ptb_changelog_helper/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains a class that represents a version number."""

from typing import Literal, NamedTuple


Expand Down
Loading