Skip to content

Commit

Permalink
use isort (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored Feb 5, 2024
1 parent 20bfcaf commit 38358f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ repos:
hooks:
- id: flynt

- 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: [--py38-plus, --add-import, from __future__ import annotations]
- id: isort
args: [--profile, black]

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.3.0
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none",
"editor.formatOnPaste": true
"editor.formatOnPaste": true,
"esbonio.sphinx.confDir": ""
}
6 changes: 2 additions & 4 deletions file_tree_check/smartPath.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from __future__ import annotations

import re
from abc import ABC
from abc import abstractmethod
from abc import ABC, abstractmethod
from pathlib import Path

from file_tree import FileTree
from file_tree import Template
from file_tree import FileTree, Template
from file_tree.template import Literal


Expand Down

0 comments on commit 38358f9

Please sign in to comment.