Skip to content

Commit

Permalink
Merge pull request #483 from Pierre-Sassoulas/black-upgrade
Browse files Browse the repository at this point in the history
Upgrade tools, apply black 2024's style inside blackendoc
  • Loading branch information
Pierre-Sassoulas authored Feb 20, 2024
2 parents 8c2435d + 445e29b commit 822c172
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.0"
rev: "v0.2.2"
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.0
hooks:
- id: autoflake
name: autoflake
Expand All @@ -25,15 +25,15 @@ repos:
hooks:
- id: rst-backticks
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.10.0]
additional_dependencies: [black==24.2.0]
- repo: local
hooks:
- id: rst
Expand Down
1 change: 1 addition & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Release script.
"""

import argparse
from subprocess import check_call
import sys
Expand Down
1 change: 1 addition & 0 deletions src/pluggy/_callers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Call loop machinery
"""

from __future__ import annotations

from typing import cast
Expand Down
1 change: 1 addition & 0 deletions src/pluggy/_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Internal hook annotation, representation and calling machinery.
"""

from __future__ import annotations

import inspect
Expand Down
1 change: 1 addition & 0 deletions src/pluggy/_result.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Hook wrapper "result" utilities.
"""

from __future__ import annotations

from types import TracebackType
Expand Down
1 change: 1 addition & 0 deletions src/pluggy/_tracing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tracing utils
"""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions testing/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Benchmarking and performance tests.
"""

import pytest

from pluggy import HookimplMarker
Expand Down
1 change: 1 addition & 0 deletions testing/test_pluginmanager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
``PluginManager`` unit and public API testing.
"""

import importlib.metadata
from typing import Any
from typing import List
Expand Down

0 comments on commit 822c172

Please sign in to comment.