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

Open
wants to merge 2 commits into
base: master
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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:

# Check if Poetry is configured correctly, and if the lock file is up to date, and if the requirements.txt file is up to date.
- repo: https://github.com/python-poetry/poetry
rev: "1.5.0"
rev: "1.7.0"
hooks:
- id: poetry-check
name: Check if Poetry is configured correctly by running `poetry check`
Expand All @@ -34,20 +34,20 @@ repos:
]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.13.0"
rev: "1.4.1"
hooks:
- id: pyproject-fmt
name: Format pyproject.toml with pyproject-fmt

# Add a trailing comma to Python stuff.
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.0.0
rev: v3.1.0
hooks:
- id: add-trailing-comma
args: [ --py36-plus ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
name: Prevent adding large files to the repository (500 Kb)
Expand Down Expand Up @@ -111,16 +111,16 @@ repos:

# Run Ruff on all Python files. We do this before Black so that Black can
# format the code that Ruff changes.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.280"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.4"
hooks:
- id: ruff
name: Lint Python code with Ruff
args: [ "--fix", "--exit-non-zero-on-fix" ]

# Run Black on all Python files. This will format the code.
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.10.1
hooks:
- id: black
name: Format Python code with Black
Expand All @@ -135,15 +135,15 @@ repos:

# Run Pyupgrade on all Python files. This will upgrade the code to Python 3.11.
- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.15.0
hooks:
- id: pyupgrade
name: Upgrade Python syntax to Python 3.11 with pyupgrade
args: [ "--py311-plus" ]

# Run Flake8 on all Python files.
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
name: Lint Python code with Flake8
Expand Down
2 changes: 1 addition & 1 deletion discord_twitter_webhooks/send_to_discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def send_embed(entry: Entry | EntryLike, group: Group) -> None:
# Only do this if more than one image is found
if len(embeds) > 1:
embeds.insert(0, embed)
webhook = DiscordWebhook(url=entry_link, embeds=embeds, rate_limit_retry=True) # type: ignore # noqa: PGH003, E501
webhook = DiscordWebhook(url=entry_link, embeds=embeds, rate_limit_retry=True) # type: ignore # noqa: PGH003
else:
if embeds[0].image:
image = embeds[0].image
Expand Down
Loading