Skip to content

Commit 69fcc3d

Browse files
authored
Merge pull request #148 from Preocts/preocts
pre-commit changes
2 parents 10e4ce0 + d04202d commit 69fcc3d

3 files changed

Lines changed: 8 additions & 19 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,16 @@ repos:
1212
- id: debug-statements
1313
- id: mixed-line-ending
1414

15-
# Adds a standard feel to import segments, adds future annotations
16-
- repo: https://github.com/asottile/reorder-python-imports
17-
rev: v3.12.0
15+
# Adds a standard feel to import segments
16+
- repo: https://github.com/pycqa/isort
17+
rev: 5.13.2
1818
hooks:
19-
- id: reorder-python-imports
20-
args:
21-
- "--py37-plus"
22-
- "--add-import"
23-
- "from __future__ import annotations"
24-
- "--application-directories"
25-
- ".:src"
26-
27-
# Automatically upgrade syntax to newer versions
28-
- repo: https://github.com/asottile/pyupgrade
29-
rev: v3.15.0
30-
hooks:
31-
- id: pyupgrade
32-
args:
33-
- "--py38-plus"
19+
- id: isort
20+
args: ["--profile", "black"]
3421

3522
# Format code. No, I don't like everything black does either.
3623
- repo: https://github.com/psf/black-pre-commit-mirror
37-
rev: 23.12.1
24+
rev: 24.1.1
3825
hooks:
3926
- id: black
4027

src/module_name/sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This is just a sample file"""
2+
23
from __future__ import annotations
34

45

tests/test_sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for sample"""
2+
23
from __future__ import annotations
34

45
import pytest

0 commit comments

Comments
 (0)