File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 2323
2424 steps :
2525
26- - uses : " actions/checkout@v4"
26+ - name : " Checkout PR"
27+ uses : " actions/checkout@v4"
28+ if : github.event_name == 'pull_request_target'
29+ with :
30+ ref : refs/pull/${{ github.event.pull_request.number }}/merge
31+
32+ - name : " Checkout Branch"
33+ uses : " actions/checkout@v4"
34+ if : github.event_name == 'push'
2735
2836 - name : " Set up Python ${{ matrix.python-version }}"
2937 uses : " actions/setup-python@v5"
Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ upload:
2121check :
2222 ruff format --check
2323 ruff check
24+
25+ reformat :
26+ ruff format
Original file line number Diff line number Diff line change 3939
4040
4141class PySwipError (Exception ):
42-
4342 def __init__ (self , message ):
4443 super ().__init__ (message )
4544
4645
4746class SwiPrologNotFoundError (PySwipError ):
48-
4947 def __init__ (self , message = "SWI-Prolog not found" ):
5048 super ().__init__ (message )
5149
@@ -188,7 +186,9 @@ def _find_swipl_windows():
188186 # libswipl.dll must be in SWI_DIR/bin
189187 libswipl_path = os .path .join (swi_dir , "bin" , libswipl )
190188 if not os .path .exists (libswipl_path ):
191- raise SwiPrologNotFoundError (f"could not locate { libswipl } at { libswipl_path } " )
189+ raise SwiPrologNotFoundError (
190+ f"could not locate { libswipl } at { libswipl_path } "
191+ )
192192 return libswipl_path , swi_dir
193193
194194 raise SwiPrologNotFoundError
Original file line number Diff line number Diff line change 2525"""
2626Tests the Prolog class.
2727"""
28+
2829import os .path
2930import unittest
3031
You can’t perform that action at this time.
0 commit comments