Skip to content

Commit 859037b

Browse files
[pre-commit.ci] pre-commit autoupdate (#2449)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.7](astral-sh/ruff-pre-commit@v0.4.4...v0.4.7) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix _io order with pylint conf --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent a3f1a98 commit 859037b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: end-of-file-fixer
1111
exclude: tests/testdata
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: "v0.4.4"
13+
rev: "v0.4.7"
1414
hooks:
1515
- id: ruff
1616
exclude: tests/testdata

pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ ext-import-graph=
348348
# not be disabled)
349349
int-import-graph=
350350

351+
# Force import order to recognize a module as part of the standard
352+
# compatibility libraries.
353+
known-standard-library=_io
351354

352355
[EXCEPTIONS]
353356

tests/test_raw_building.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from __future__ import annotations
1212

13+
import _io
1314
import logging
1415
import os
1516
import sys
@@ -18,7 +19,6 @@
1819
from typing import Any
1920
from unittest import mock
2021

21-
import _io
2222
import pytest
2323

2424
import tests.testdata.python3.data.fake_module_with_broken_getattr as fm_getattr

0 commit comments

Comments
 (0)