Skip to content

Commit d300b52

Browse files
authored
Merge pull request #1196 from mulkieran/abs2rel
Add abs2rel to formatters used
2 parents a8bda8b + 5c4b573 commit d300b52

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
PATH=${PATH}:/github/home/.local/bin PYTHONPATH=./src
4646
make -f Makefile lint
4747
- dependencies: black python3-isort
48-
task: make -f Makefile fmt-ci
48+
task:
49+
PATH=${PATH}:/github/home/.local/bin PYTHONPATH=./src
50+
make -f Makefile fmt-ci
4951
- dependencies: shfmt
5052
task: make -f Makefile fmt-shell-ci
5153
runs-on: ubuntu-latest
@@ -63,6 +65,8 @@ jobs:
6365
run: python --version
6466
- name: Install pyright
6567
run: pip install --user pyright
68+
- name: Install abs2rel
69+
run: pip install --user abs2rel
6670
- name: Run test
6771
run: ${{ matrix.task }}
6872

.github/workflows/push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ jobs:
8080
- name: Apply annotations
8181
run: PYTHONPATH=./src make apply
8282
working-directory: stratis-cli
83+
- name: Install abs2rel
84+
run: pip install --user abs2rel
8385
- name: Format result
84-
run: make fmt
86+
run:
87+
PATH=${PATH}:/github/home/.local/bin
88+
make fmt
8589
working-directory: stratis-cli
8690
- name: Install pyright
8791
run: pip install --user pyright

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ lint:
4949

5050
.PHONY: fmt
5151
fmt:
52+
(cd src; yes | abs2rel)
5253
isort setup.py bin/stratis src tests
5354
black ./bin/stratis .
5455

src/stratis_cli/_actions/_bind.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
import json
2020
from argparse import Namespace
2121

22-
# isort: LOCAL
23-
from stratis_cli._constants import PoolId
24-
2522
from .._constants import EncryptionMethod, IdType, PoolId
2623
from .._errors import StratisCliEngineError, StratisCliNoChangeError
2724
from .._stratisd_constants import StratisdErrors

src/stratis_cli/_actions/_pool.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
# isort: FIRSTPARTY
3232
from dbus_python_client_gen import DPClientMarshallingError
3333

34-
# isort: LOCAL
35-
from stratis_cli._stratisd_constants import BlockDevTiers
36-
3734
from .._alerts import PoolAlert
3835
from .._constants import IntegrityOption, IntegrityTagSpec, PoolId, UnlockMethod
3936
from .._errors import (

0 commit comments

Comments
 (0)