Skip to content

Commit

Permalink
Replace reorder-python-imports by isort
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Mar 12, 2024
1 parent 14a0c3f commit 98a3397
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -30,11 +30,11 @@ repos:
]
language: python
files: \.py$
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: reorder-python-imports
args: ["--application-directories=.:src"]
- id: isort
name: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Expand Up @@ -8,6 +8,10 @@ build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[tool.isort]
profile = "black"
force_single_line = "true"

[tool.pytest.ini_options]
addopts = "--ignore tests/example"
pytester_example_dir = "tests/example"
Expand Down
1 change: 1 addition & 0 deletions src/pytest_rich/plugin.py
@@ -1,6 +1,7 @@
"""
Proof of concept for pytest + rich integration.
"""

import sys

import pytest
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_rich/traceback.py
Expand Up @@ -21,8 +21,8 @@
from rich.console import Console
from rich.console import ConsoleOptions
from rich.console import ConsoleRenderable
from rich.console import group
from rich.console import RenderResult
from rich.console import group
from rich.highlighter import ReprHighlighter
from rich.panel import Panel
from rich.rule import Rule
Expand Down

0 comments on commit 98a3397

Please sign in to comment.