Skip to content

Commit f80a071

Browse files
committed
Rebase from main
2 parents 5c949d1 + 263ca1e commit f80a071

File tree

9 files changed

+66
-66
lines changed

9 files changed

+66
-66
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ jobs:
55
runs-on: ${{ matrix.os }}
66
strategy:
77
matrix:
8-
os: [macos-latest, macos-12, macos-13]
8+
os: [macos-latest, macos-13]
99
include:
1010
- os: macos-latest
1111
- os: macos-13
12-
- os: macos-12
1312
steps:
1413
- uses: actions/checkout@v4
1514
with:

bundledApps/HeritrixJob.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class HeritrixJob:
12-
def write(self):
12+
def write(self) -> None:
1313
self.job_number = str(int(time.time()))
1414
path = self.job_path + self.job_number
1515
if not os.path.exists(path):
@@ -23,7 +23,7 @@ def write(self):
2323
f.write(self.sampleXML)
2424
# print beans_file_path+"crawler-beans.cxml"
2525

26-
def launch_heritrix_job(self):
26+
def launch_heritrix_job(self) -> None:
2727
logging.basicConfig(level=logging.DEBUG)
2828
print('Launching Heritrix job')
2929
data = {"action": "launch"}
@@ -36,7 +36,7 @@ def launch_heritrix_job(self):
3636
config.heritrix_credentials_password),
3737
data=data, headers=headers, verify=False, stream=True)
3838

39-
def build_heritrix_job(self):
39+
def build_heritrix_job(self) -> None:
4040
logging.basicConfig(level=logging.DEBUG)
4141
print('Building Heritrix job')
4242
data = {"action": "build"}
@@ -49,7 +49,7 @@ def build_heritrix_job(self):
4949
data=data, headers=headers,
5050
verify=False, stream=True)
5151

52-
def __init__(self, h_job_path, uris, depth=1):
52+
def __init__(self, h_job_path : str, uris : list, depth : int = 1) -> None:
5353
self.job_path = h_job_path
5454
self.sampleXML = '''<?xml version="1.0" encoding="UTF-8"?>
5555
<!--

0 commit comments

Comments
 (0)