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] autoupdate #85

Merged
merged 2 commits into from
May 6, 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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -26,13 +26,13 @@ repos:
language: pygrep
files: \.(py|sh|rst|yml|yaml)$
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
args: [--check, --diff]
exclude: ^tests/test_cases/example_unicode.py
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [
Expand Down
1 change: 1 addition & 0 deletions flake8_rst_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This is a plugin for the tool flake8 tool for checking Python
source code.
"""

import ast
import re

Expand Down
1 change: 1 addition & 0 deletions tests/RST208/option_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

The end.
""" # noqa: E501

import sys

print("Called with %i command line arguments" % (len(sys.argv) - 1))
1 change: 1 addition & 0 deletions tests/test_all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test suite."""

import ast
import glob
import os.path
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cases/example_unicode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
u"""This module has an explicit UTF-8 encoding and unicode docstring.
"""This module has an explicit UTF-8 encoding and unicode docstring.

The following text is a short sentence in Japanese:

Expand All @@ -12,7 +12,7 @@

def hello_jp():
"""Return 'Hello' in Japanese ('こんにちは')."""
return u"こんにちは"
return "こんにちは"


__all__ = ("hello_jp",) # single entry tuple
Expand Down
Loading