runem 0.7.0__py3-none-any.whl → 0.7.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
runem/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
runem/blocking_print.py CHANGED
@@ -21,6 +21,9 @@ def _reset_console() -> Console:
21
21
  # `highlight` is what colourises string and number in print() calls.
22
22
  # We do not want this to be auto-magic.
23
23
  highlight=False,
24
+ # `soft_wrap=True` disables word-wrap & cropping by default:
25
+ # - `soft_wrap` reads like a misnomer to me
26
+ soft_wrap=True,
24
27
  )
25
28
  return RICH_CONSOLE
26
29
 
runem/config_parse.py CHANGED
@@ -11,7 +11,7 @@ from runem.job import Job
11
11
  from runem.job_wrapper import get_job_wrapper
12
12
  from runem.log import error, log, warn
13
13
  from runem.types.common import JobNames, JobPhases, JobTags, OrderedPhases, PhaseName
14
- from runem.types.errors import FunctionNotFound
14
+ from runem.types.errors import FunctionNotFound, SystemExitBad
15
15
  from runem.types.filters import TagFileFilter, TagFileFilters
16
16
  from runem.types.hooks import HookName
17
17
  from runem.types.runem_config import (
@@ -81,9 +81,8 @@ def parse_hook_config(
81
81
  f"hook config entry is missing '{err.args[0]}' key. Have {tuple(hook.keys())}"
82
82
  ) from err
83
83
  except FunctionNotFound as err:
84
- raise FunctionNotFound(
85
- f"Whilst loading job '{str(hook['hook_name'])}'. {str(err)}"
86
- ) from err
84
+ error(f"Whilst loading hook '{str(hook['hook_name'])}'. {str(err)}")
85
+ raise SystemExitBad(2) from err
87
86
 
88
87
 
89
88
  def _parse_job( # noqa: C901
@@ -110,9 +109,8 @@ def _parse_job( # noqa: C901
110
109
  # try and load the function _before_ we schedule it's execution
111
110
  get_job_wrapper(job, cfg_filepath)
112
111
  except FunctionNotFound as err:
113
- raise FunctionNotFound(
114
- f"Whilst loading job '{job['label']}'. {str(err)}"
115
- ) from err
112
+ error(f"Whilst loading job '{job['label']}'. {str(err)}")
113
+ raise SystemExitBad(2) from err
116
114
 
117
115
  try:
118
116
  phase_id: PhaseName = job["when"]["phase"]
@@ -55,9 +55,9 @@ def _load_python_function_from_module(
55
55
  except AttributeError as err:
56
56
  raise FunctionNotFound(
57
57
  (
58
- f"ERROR! Check that function '{function_to_load}' "
59
- f"exists in '{str(module_file_path)}' as expected in "
60
- f"your config at '{str(cfg_filepath)}"
58
+ f"Check that function '[blue]{function_to_load}[/blue]' "
59
+ f"exists in '[blue]{str(module_file_path)}[/blue]' as expected in "
60
+ f"your config at '[blue]{str(cfg_filepath)}[/blue]'"
61
61
  )
62
62
  ) from err
63
63
  return function
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runem
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Awesome runem created by lursight
5
5
  Author: lursight
6
6
  License: Specify your license here
@@ -1,13 +1,13 @@
1
- runem/VERSION,sha256=ln2a-xATRmZxZvLnboGRC8GQSI19QdUMoAcunZLwDjI,6
1
+ runem/VERSION,sha256=kCMRx7s4-hZY_0A972FY7nN4_p1uLihPocOHNcMb0ws,6
2
2
  runem/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  runem/__main__.py,sha256=dsOiVZegpfK9JOs5n7UmbX5iwwbj7iFkEbLoVeEgAn4,136
4
4
  runem/base.py,sha256=EZfR7FIlwEdU9Vfe47Wk2DOO8GQqpKxxLNKp6YHueZ4,316
5
- runem/blocking_print.py,sha256=2nCvc10zXl1DRJldkruKthKjfmZKErcmxQzt3pjmN-c,2289
5
+ runem/blocking_print.py,sha256=UKU_BM7wzPvn6RKw_tFPw4Lzpjdtbwq5MIaAdL1_zN8,2435
6
6
  runem/cli.py,sha256=wEt_Jnumhl8SiOdKdSJzLkJpWv6n3_Odhi_HeIixr1k,134
7
7
  runem/command_line.py,sha256=Q5xH7kGzc3YpIbGpU43B_pwKvp-LchSW7IgfGnf2Ke0,14437
8
8
  runem/config.py,sha256=PWj4wj90WrRiGuXOUy6mpevJXQM57epDWG5NYDrGK2w,6049
9
9
  runem/config_metadata.py,sha256=krDomUcADsAeUQrxwNmOS58eeaNIlqmhWIKWv8mUH4A,3300
10
- runem/config_parse.py,sha256=d23dtmh4bd14R4odrZtIVTQFfnzxrRGdTHhfVAf-dbA,13843
10
+ runem/config_parse.py,sha256=A1pLfEL5CEaexH-Kn_PYthAa9mwmOS5UrD0kEbDcqPo,13843
11
11
  runem/config_validate.py,sha256=gtatObD1qBkEK-0CJ2rJPT5A7EBTWE_9V_AiGZZ1FQI,1424
12
12
  runem/files.py,sha256=59boeFvUANYOS-PllIjeKIht6lNINZ43WxahDg90oAc,4392
13
13
  runem/hook_manager.py,sha256=H0TL3HCqU2mgKm_-dgCD7TsK5T1bLT4g7x6kpytMPhU,4350
@@ -17,7 +17,7 @@ runem/job_execute.py,sha256=Sn5v7KoyCOw2FH-bJaur_zYChwmvCXhmdZ692B3SZA8,4792
17
17
  runem/job_filter.py,sha256=4KMjsI5-tiK0b90RTlivxm5Xdt0gWdRz30voqqL_ijI,5374
18
18
  runem/job_runner_simple_command.py,sha256=iP5an6yixW8o4C0ZBtu6csb-oVK3Q62ZZgtHBmxlXaU,2428
19
19
  runem/job_wrapper.py,sha256=q5GtopZ5vhSJ581rwU4-lF9KnbL3ZYgOC8fqaCnXD_g,983
20
- runem/job_wrapper_python.py,sha256=os6BruA3bOqeXB0Jiwm20P5TyxlMb-wSILFtkccDN2s,4302
20
+ runem/job_wrapper_python.py,sha256=9rM6OXs0rNRVNwZ7OVB6L0K7RocEpiG0N-qIMuprjRA,4335
21
21
  runem/log.py,sha256=MEGWEBeFs0YVkr_U9UXnl4Isqc5MvGbEn_I3fo-V35Q,1422
22
22
  runem/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  runem/report.py,sha256=qiGu0PPcbeFh9KJHtFKjH_LQHDfYuDgLVbUA81fNsLI,9124
@@ -37,7 +37,7 @@ runem/types/hooks.py,sha256=9Q5THuBEH0Asdx5cj0caNmO54RckwR0tT3AgRXFROhs,292
37
37
  runem/types/options.py,sha256=y8_hyWYvhalC9-kZbvoDtxm0trZgyyGcswQqfuQy_pM,265
38
38
  runem/types/runem_config.py,sha256=qG_bghm5Nr-ZTbaZbf1v8Fx447V-hgEvvRy5NZ3t-Io,5141
39
39
  runem/types/types_jobs.py,sha256=99b2TLwBiqjOurxRWWU7E9BlphR0KketUUSqUD_Kh5c,4432
40
- runem-0.7.0.dist-info/licenses/LICENSE,sha256=awOCsWJ58m_2kBQwBUGWejVqZm6wuRtCL2hi9rfa0X4,1211
40
+ runem-0.7.1.dist-info/licenses/LICENSE,sha256=awOCsWJ58m_2kBQwBUGWejVqZm6wuRtCL2hi9rfa0X4,1211
41
41
  scripts/test_hooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  scripts/test_hooks/json_validators.py,sha256=N2FyWcpjWzfFGycXLo-ecNLJkxTFPPbqPfVBcJLBlb4,967
43
43
  scripts/test_hooks/py.py,sha256=Nku44p6ZqJb5d9uo2bPfpeqf8g1LDHRDqL4ou0Y0G_k,10520
@@ -49,8 +49,8 @@ tests/data/help_output.3.10.txt,sha256=5TUpNITVL6pD5BpFAl-Orh3vkOpStveijZzvgJuI_
49
49
  tests/data/help_output.3.11.txt,sha256=ycrF-xKgdQ8qrWzkkR-vbHe7NulUTsCsS0_Gda8xYDs,4162
50
50
  tests/test_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  tests/test_types/test_public_api.py,sha256=QHiwt7CetQur65JSbFRnOzQxhCJkX5MVLymHHVd_6yc,160
52
- runem-0.7.0.dist-info/METADATA,sha256=MqlLB5gsFKqQbmmvieTPHUy3JNiSrEAnRq94gKdM6f8,5894
53
- runem-0.7.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
54
- runem-0.7.0.dist-info/entry_points.txt,sha256=nu0g_vBeuPihYtimbtlNusxWovylMppvJ8UxdJlJfvM,46
55
- runem-0.7.0.dist-info/top_level.txt,sha256=NkdxkwLKNNhxItveR2KqNqTshTZ268m5D7SjJEmG4-Y,20
56
- runem-0.7.0.dist-info/RECORD,,
52
+ runem-0.7.1.dist-info/METADATA,sha256=wX6dRVH8E905TMINRtxhwtGoVeyaokkjrQcg-2h1TgY,5894
53
+ runem-0.7.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
54
+ runem-0.7.1.dist-info/entry_points.txt,sha256=nu0g_vBeuPihYtimbtlNusxWovylMppvJ8UxdJlJfvM,46
55
+ runem-0.7.1.dist-info/top_level.txt,sha256=NkdxkwLKNNhxItveR2KqNqTshTZ268m5D7SjJEmG4-Y,20
56
+ runem-0.7.1.dist-info/RECORD,,
File without changes