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

Add import sorting to ruff #128

Merged
merged 2 commits into from
Jul 4, 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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: ruff
name: ruff lint
args: ["--fix"]
args: ["--select", "I", "--fix"]
files: ^pyfileindex/
- id: ruff-format
name: ruff format
4 changes: 2 additions & 2 deletions pyfileindex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import _version

from pyfileindex.pyfileindex import PyFileIndex

from . import _version

__version__ = _version.get_versions()["version"]
__all__ = [PyFileIndex]
2 changes: 1 addition & 1 deletion pyfileindex/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"""Git implementation of _version.py."""

import errno
import functools
import os
import re
import subprocess
import sys
from typing import Any, Callable, Dict, List, Optional, Tuple
import functools


def get_keywords() -> Dict[str, str]:
Expand Down
Loading