Skip to content

Commit 7afea86

Browse files
authored
Merge pull request #85 from populse/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents b83186e + 4e1ebcf commit 7afea86

File tree

115 files changed

+472
-844
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+472
-844
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
exclude: ^doc/sphinx/sphinxext/
3232

3333
- repo: https://github.com/asottile/pyupgrade
34-
rev: v3.19.1
34+
rev: v3.20.0
3535
hooks:
3636
- id: pyupgrade
3737
args: [--py311-plus]

bin/soma_delete_all_workflows

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
'''
54
@author: Soizic Laguitton

bin/soma_kill_servers

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

4-
from __future__ import print_function
53
import sys
64
import argparse
75
from soma_workflow import connection

bin/soma_restart_workflow

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
'''
54
@author: Soizic Laguitton

bin/soma_stop_workflow

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
'''
54
@author: Soizic Laguitton

bin/soma_submit_workflow

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
'''
54
@author: Soizic Laguitton

bin/soma_workflow_gui

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

43
'''
54
@author: Soizic Laguitton

doc/source/conf.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# soma-workflow documentation build configuration file, created by
43
# sphinx-quickstart on Fri Jan 28 10:45:12 2011.
@@ -11,7 +10,6 @@
1110
# All configuration values have a default; values that are commented out
1211
# serve to show the default.
1312

14-
from __future__ import absolute_import
1513
import sys
1614
import os
1715
import soma_workflow.version
@@ -65,8 +63,8 @@
6563
master_doc = 'index'
6664

6765
# General information about the project.
68-
project = u'soma-workflow'
69-
copyright = u'2011-2021 CEA, Neurospin, France, CATI, France'
66+
project = 'soma-workflow'
67+
copyright = '2011-2021 CEA, Neurospin, France, CATI, France'
7068

7169
# The version info for the project you're documenting, acts as replacement for
7270
# |version| and |release|, also used in various other places throughout the
@@ -204,8 +202,8 @@
204202
# Grouping the document tree into LaTeX files. List of tuples
205203
# (source start file, target name, title, author, documentclass [howto/manual]).
206204
latex_documents = [
207-
('index', 'soma-workflow.tex', u'soma-workflow Documentation',
208-
u'Soizic Laguitton', 'manual'),
205+
('index', 'soma-workflow.tex', 'soma-workflow Documentation',
206+
'Soizic Laguitton', 'manual'),
209207
]
210208

211209
# The name of an image file (relative to this directory) to place at the top of
@@ -237,18 +235,18 @@
237235
# One entry per manual page. List of tuples
238236
# (source start file, name, description, authors, manual section).
239237
man_pages = [
240-
('index', 'soma-workflow', u'soma-workflow Documentation',
241-
[u'Soizic Laguitton'], 1)
238+
('index', 'soma-workflow', 'soma-workflow Documentation',
239+
['Soizic Laguitton'], 1)
242240
]
243241

244242

245243
# -- Options for Epub output ---------------------------------------------
246244

247245
# Bibliographic Dublin Core info.
248-
epub_title = u'soma-workflow'
249-
epub_author = u'Soizic Laguitton'
250-
epub_publisher = u'2021 CEA, Neurospin, France, CATI, France'
251-
epub_copyright = u'2021, '
246+
epub_title = 'soma-workflow'
247+
epub_author = 'Soizic Laguitton'
248+
epub_publisher = '2021 CEA, Neurospin, France, CATI, France'
249+
epub_copyright = '2021, '
252250

253251
# The language of the text. It defaults to the language option
254252
# or en if the language is not set.

doc/source/conf_github.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# soma-workflow documentation build configuration file, created by
43
# sphinx-quickstart on Fri Jan 28 10:45:12 2011.
@@ -11,7 +10,6 @@
1110
# All configuration values have a default; values that are commented out
1211
# serve to show the default.
1312

14-
from __future__ import absolute_import
1513
import sys
1614
import os
1715
import soma_workflow.version
@@ -51,8 +49,8 @@
5149
master_doc = 'index'
5250

5351
# General information about the project.
54-
project = u'soma-workflow'
55-
copyright = u'2011-2021 CEA, Neurospin, France, CATI, France'
52+
project = 'soma-workflow'
53+
copyright = '2011-2021 CEA, Neurospin, France, CATI, France'
5654

5755
# The version info for the project you're documenting, acts as replacement for
5856
# |version| and |release|, also used in various other places throughout the
@@ -189,8 +187,8 @@
189187
# Grouping the document tree into LaTeX files. List of tuples
190188
# (source start file, target name, title, author, documentclass [howto/manual]).
191189
latex_documents = [
192-
('index', 'soma-workflow.tex', u'soma-workflow Documentation',
193-
u'Soizic Laguitton', 'manual'),
190+
('index', 'soma-workflow.tex', 'soma-workflow Documentation',
191+
'Soizic Laguitton', 'manual'),
194192
]
195193

196194
# The name of an image file (relative to this directory) to place at the top of
@@ -222,18 +220,18 @@
222220
# One entry per manual page. List of tuples
223221
# (source start file, name, description, authors, manual section).
224222
man_pages = [
225-
('index', 'soma-workflow', u'soma-workflow Documentation',
226-
[u'Soizic Laguitton'], 1)
223+
('index', 'soma-workflow', 'soma-workflow Documentation',
224+
['Soizic Laguitton'], 1)
227225
]
228226

229227

230228
# -- Options for Epub output ---------------------------------------------
231229

232230
# Bibliographic Dublin Core info.
233-
epub_title = u'soma-workflow'
234-
epub_author = u'Soizic Laguitton'
235-
epub_publisher = u'2021 CEA, Neurospin, France, CATI, France'
236-
epub_copyright = u'2021, '
231+
epub_title = 'soma-workflow'
232+
epub_author = 'Soizic Laguitton'
233+
epub_publisher = '2021 CEA, Neurospin, France, CATI, France'
234+
epub_copyright = '2021, '
237235

238236
# The language of the text. It defaults to the language option
239237
# or en if the language is not set.

python/soma_workflow/MPI_workflow_runner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
'''
32
author: Benoit Da Mota
43
author: Soizic Laguitton
@@ -49,7 +48,7 @@ def slave_loop(communicator,
4948
epd_tar = tarfile.open(epd_to_deploy)
5049
epd_tar.extractall(path=untar_directory)
5150
# logger.debug('extract %s' %(epd_to_deploy))
52-
except IOError as e:
51+
except OSError as e:
5352
logger.error("Could not deploy epd: %s" % (e))
5453
pass
5554

@@ -117,7 +116,7 @@ def slave_loop(communicator,
117116

118117
else:
119118
raise Exception('Unknown tag')
120-
for job_id, command_def in six.iteritems(commands):
119+
for job_id, command_def in commands.items():
121120
command, env = command_def
122121
if command == None:
123122
# ended_jobs_info[job_id] = (constants.FAILED,
@@ -205,7 +204,7 @@ def slave_loop(communicator,
205204
ret_value, None, None))
206205

207206
if ended_jobs_info:
208-
for job_id in six.iterkeys(ended_jobs_info):
207+
for job_id in ended_jobs_info.keys():
209208
del commands[job_id]
210209
logger.debug("[host: " + socket.gethostname() + "] "
211210
+ "Slave " + repr(rank) + " send JOB_RESULT")

0 commit comments

Comments
 (0)