File tree Expand file tree Collapse file tree 8 files changed +23
-23
lines changed Expand file tree Collapse file tree 8 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -euxo pipefail
3
3
4
4
uv run isort --profile hug isort/ tests/ scripts/
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -ux
3
3
4
4
result=0
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -euxo pipefail
3
3
4
4
./scripts/clean.sh
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -euxo pipefail
3
3
4
4
uv run cruft check
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -euxo pipefail
3
3
4
4
uv run coverage run --parallel -m pytest tests/unit/ -s --ignore=tests/unit/test_deprecated_finders.py
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
set -euxo pipefail
3
3
4
4
uv run pytest tests/integration/ -s
Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ def bar():
924
924
925
925
assert (
926
926
isort .code (
927
- '''#!/bin/bash
927
+ '''#!/usr/ bin/env bash
928
928
"""My comment
929
929
930
930
@@ -939,7 +939,7 @@ def bar():
939
939
''' ,
940
940
float_to_top = True ,
941
941
)
942
- == '''#!/bin/bash
942
+ == '''#!/usr/ bin/env bash
943
943
"""My comment
944
944
945
945
@@ -958,7 +958,7 @@ def bar():
958
958
959
959
assert (
960
960
isort .code (
961
- '''#!/bin/bash
961
+ '''#!/usr/ bin/env bash
962
962
963
963
"""My comment
964
964
@@ -974,7 +974,7 @@ def bar():
974
974
''' ,
975
975
float_to_top = True ,
976
976
)
977
- == '''#!/bin/bash
977
+ == '''#!/usr/ bin/env bash
978
978
979
979
"""My comment
980
980
@@ -1171,7 +1171,7 @@ def test_isort_float_to_top_correctly_identifies_single_line_comments_1499():
1171
1171
"""
1172
1172
assert (
1173
1173
isort .code (
1174
- '''#!/bin/bash
1174
+ '''#!/usr/ bin/env bash
1175
1175
"""My comment"""
1176
1176
def foo():
1177
1177
pass
@@ -1184,7 +1184,7 @@ def bar():
1184
1184
float_to_top = True ,
1185
1185
)
1186
1186
== (
1187
- '''#!/bin/bash
1187
+ '''#!/usr/ bin/env bash
1188
1188
"""My comment"""
1189
1189
import a
1190
1190
@@ -1200,7 +1200,7 @@ def bar():
1200
1200
)
1201
1201
assert (
1202
1202
isort .code (
1203
- """#!/bin/bash
1203
+ """#!/usr/ bin/env bash
1204
1204
'''My comment'''
1205
1205
def foo():
1206
1206
pass
@@ -1213,7 +1213,7 @@ def bar():
1213
1213
float_to_top = True ,
1214
1214
)
1215
1215
== (
1216
- """#!/bin/bash
1216
+ """#!/usr/ bin/env bash
1217
1217
'''My comment'''
1218
1218
import a
1219
1219
@@ -1229,7 +1229,7 @@ def bar():
1229
1229
)
1230
1230
1231
1231
assert isort .check_code (
1232
- """#!/bin/bash
1232
+ """#!/usr/ bin/env bash
1233
1233
'''My comment'''
1234
1234
import a
1235
1235
Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ def test_float_to_top_should_respect_existing_newlines_between_imports_issue_150
629
629
See: https://github.com/PyCQA/isort/issues/1502
630
630
"""
631
631
assert isort .check_code (
632
- """#!/bin/bash
632
+ """#!/usr/ bin/env bash
633
633
'''My comment'''
634
634
635
635
import a
@@ -640,7 +640,7 @@ def test_float_to_top_should_respect_existing_newlines_between_imports_issue_150
640
640
show_diff = True ,
641
641
)
642
642
assert isort .check_code (
643
- """#!/bin/bash
643
+ """#!/usr/ bin/env bash
644
644
'''My comment'''
645
645
646
646
@@ -653,7 +653,7 @@ def test_float_to_top_should_respect_existing_newlines_between_imports_issue_150
653
653
)
654
654
assert (
655
655
isort .code (
656
- """#!/bin/bash
656
+ """#!/usr/ bin/env bash
657
657
'''My comment'''
658
658
659
659
@@ -664,7 +664,7 @@ def test_float_to_top_should_respect_existing_newlines_between_imports_issue_150
664
664
float_to_top = True ,
665
665
add_imports = ["import b" ],
666
666
)
667
- == """#!/bin/bash
667
+ == """#!/usr/ bin/env bash
668
668
'''My comment'''
669
669
670
670
@@ -677,7 +677,7 @@ def test_float_to_top_should_respect_existing_newlines_between_imports_issue_150
677
677
678
678
assert (
679
679
isort .code (
680
- """#!/bin/bash
680
+ """#!/usr/ bin/env bash
681
681
'''My comment'''
682
682
683
683
@@ -689,7 +689,7 @@ def my_function():
689
689
""" ,
690
690
float_to_top = True ,
691
691
)
692
- == """#!/bin/bash
692
+ == """#!/usr/ bin/env bash
693
693
'''My comment'''
694
694
import a
695
695
@@ -701,7 +701,7 @@ def my_function():
701
701
702
702
assert (
703
703
isort .code (
704
- """#!/bin/bash
704
+ """#!/usr/ bin/env bash
705
705
'''My comment'''
706
706
707
707
@@ -711,7 +711,7 @@ def my_function():
711
711
add_imports = ["import os" ],
712
712
float_to_top = True ,
713
713
)
714
- == """#!/bin/bash
714
+ == """#!/usr/ bin/env bash
715
715
'''My comment'''
716
716
import os
717
717
You can’t perform that action at this time.
0 commit comments