Skip to content

Commit

Permalink
Merge pull request #434 from cibinmathew/python311
Browse files Browse the repository at this point in the history
Fix failing CI builds
  • Loading branch information
pcottle authored Oct 31, 2023
2 parents 018d010 + a58a155 commit baf1214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-20.04, macos-latest]
python-version: [3.6]
poetry-version: [1.1.4]
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 4 additions & 1 deletion src/pathpicker/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ def join_files_into_command(files_and_line_numbers: List[Tuple[str, int]]) -> st
and line_num != 0
):
cmd += f" +{line_num} '{file_path}'"
elif editor_without_args in ["subl", "sublime", "atom", "hx"] and line_num != 0:
elif (
editor_without_args in ["subl", "sublime", "atom", "hx"]
and line_num != 0
):
cmd += f" '{file_path}:{line_num}'"
elif line_num != 0 and os.environ.get("FPP_LINENUM_SEP"):
cmd += f" '{file_path}{os.environ.get('FPP_LINENUM_SEP')}{line_num}'"
Expand Down

0 comments on commit baf1214

Please sign in to comment.