Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cylc/flow/hostuserutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ def _get_host_info(
if target is None:
target = socket.getfqdn()
if IS_MAC_OS and target in {
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.'
'0.0.0.0.0.0.ip6.arpa',
f'1.{"0." * 31}ip6.arpa',
'1.0.0.127.in-addr.arpa',
}:
# Python's socket bindings don't play nicely with mac os
Expand Down
38 changes: 23 additions & 15 deletions cylc/flow/parsec/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ class ParsecValidator:
),
V_ABSOLUTE_HOST_LIST: (
'absolute host list',
'A comma separated list of hostnames which does not contain '
'any self references '
f'(i.e. does not contain {", ".join(SELF_REFERENCE_PATTERNS)})',
(
'A comma separated list of hostnames which does not contain '
'any self references '
f'(i.e. does not contain {", ".join(SELF_REFERENCE_PATTERNS)})'
),
['foo', 'bar', 'baz']
)
}
Expand Down Expand Up @@ -709,9 +711,11 @@ class CylcConfigValidator(ParsecValidator):
),
V_CYCLE_POINT_FORMAT: (
'cycle point format',
'An time format for date-time cycle points in ``isodatetime`` '
'"print" or "parse" format. '
'See ``isodatetime --help`` for more information.',
(
'A time format for date-time cycle points in ``isodatetime`` '
'"print" or "parse" format. '
'See ``isodatetime --help`` for more information.'
),
{
'CCYYMM': '``isodatetime`` print format.',
'%Y%m': '``isodatetime`` parse format.'
Expand Down Expand Up @@ -757,19 +761,22 @@ class CylcConfigValidator(ParsecValidator):
),
V_INTERVAL_LIST: (
'time interval list',
'A comma separated list of time intervals. '
'These can include multipliers.',
(
'A comma separated list of time intervals. '
'These can include multipliers.'
),
{
'P1Y, P2Y, P3Y': 'After 1, 2 and 3 years.',
'PT1M, 2*PT1H, P1D': 'After 1 minute, 1 hour, 1 hour and 1 '
'day'
'PT1M, 2*PT1H, P1D': 'After 1 minute, 1 hour, 1 hour and 1 day'
},
[('std:term', 'ISO8601 duration')]
),
V_PARAMETER_LIST: (
'parameter list',
'A comma separated list of Cylc parameter values. '
'This can include strings, integers and integer ranges.',
(
'A comma separated list of Cylc parameter values. '
'This can include strings, integers and integer ranges.'
),
{
'foo, bar, baz': 'List of string parameters.',
'1, 2, 3': 'List of integer parameters.',
Expand All @@ -781,9 +788,10 @@ class CylcConfigValidator(ParsecValidator):
),
V_XTRIGGER: (
'xtrigger function signature',
'A function signature similar to how it would be written in '
'Python.\n'
'``<function>(<arg>, <kwarg>=<value>):<interval>``',
(
'A function signature similar to how it would be written in '
'Python.\n``<function>(<arg>, <kwarg>=<value>):<interval>``'
),
{
'mytrigger(42, cycle_point=%(point)):PT10S':
'Run function ``mytrigger`` every 10 seconds.'
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ tests =
flake8-builtins>=1.5.0
flake8-comprehensions>=3.5.0
flake8-debugger>=4.0.0
flake8-implicit-str-concat>=0.4
# https://github.com/flake8-implicit-str-concat/flake8-implicit-str-concat/issues/82
flake8-implicit-str-concat>=0.4,!=0.7.0
flake8-mutable>=1.2.0
flake8-simplify>=0.14.0; python_version<"3.14"
flake8-type-checking
Expand Down
Loading