runem 0.0.30__py3-none-any.whl → 0.0.31__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 +1 -1
- runem/command_line.py +4 -4
- runem/files.py +35 -17
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/METADATA +1 -1
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/RECORD +9 -9
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/LICENSE +0 -0
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/WHEEL +0 -0
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/entry_points.txt +0 -0
- {runem-0.0.30.dist-info → runem-0.0.31.dist-info}/top_level.txt +0 -0
runem/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.31
|
runem/command_line.py
CHANGED
@@ -119,8 +119,8 @@ def parse_args(
|
|
119
119
|
|
120
120
|
parser.add_argument(
|
121
121
|
"-f",
|
122
|
-
"--modified-files
|
123
|
-
dest="
|
122
|
+
"--modified-files",
|
123
|
+
dest="check_modified_files",
|
124
124
|
help="only use files that have changed",
|
125
125
|
action=argparse.BooleanOptionalAction,
|
126
126
|
default=False,
|
@@ -129,8 +129,8 @@ def parse_args(
|
|
129
129
|
|
130
130
|
parser.add_argument(
|
131
131
|
"-h",
|
132
|
-
"--git-head-files
|
133
|
-
dest="
|
132
|
+
"--git-head-files",
|
133
|
+
dest="check_head_files",
|
134
134
|
help="fast run of files",
|
135
135
|
action=argparse.BooleanOptionalAction,
|
136
136
|
default=False,
|
runem/files.py
CHANGED
@@ -26,26 +26,44 @@ def find_files(config_metadata: ConfigMetadata) -> FilePathListLookup:
|
|
26
26
|
|
27
27
|
file_paths: typing.List[str] = []
|
28
28
|
|
29
|
-
if
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
if (
|
30
|
+
config_metadata.args.check_modified_files
|
31
|
+
or config_metadata.args.check_head_files
|
32
|
+
):
|
33
|
+
if config_metadata.args.check_modified_files:
|
34
|
+
# get modified, un-staged files first
|
35
|
+
file_paths.extend(
|
36
|
+
subprocess_check_output(
|
37
|
+
"git diff --name-only",
|
38
|
+
shell=True,
|
39
|
+
)
|
40
|
+
.decode("utf-8")
|
41
|
+
.splitlines()
|
34
42
|
)
|
35
|
-
|
36
|
-
.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
shell=True,
|
43
|
+
# now get modified, staged files first
|
44
|
+
file_paths.extend(
|
45
|
+
subprocess_check_output(
|
46
|
+
"git diff --name-only --staged",
|
47
|
+
shell=True,
|
48
|
+
)
|
49
|
+
.decode("utf-8")
|
50
|
+
.splitlines()
|
44
51
|
)
|
45
|
-
|
46
|
-
|
52
|
+
|
53
|
+
if config_metadata.args.check_head_files:
|
54
|
+
# Fetching modified and added files from the HEAD commit
|
55
|
+
file_paths.extend(
|
56
|
+
subprocess_check_output(
|
57
|
+
"git diff-tree --no-commit-id --name-only -r HEAD",
|
58
|
+
shell=True,
|
59
|
+
)
|
60
|
+
.decode("utf-8")
|
61
|
+
.splitlines()
|
62
|
+
)
|
63
|
+
# ensure files are unique, and still on disk i.e. filter-out deleted files
|
64
|
+
file_paths = list(
|
65
|
+
{file_path for file_path in file_paths if Path(file_path).exists()}
|
47
66
|
)
|
48
|
-
file_paths = [file_path for file_path in file_paths if Path(file_path).exists()]
|
49
67
|
else:
|
50
68
|
# fall-back to all files
|
51
69
|
file_paths = (
|
@@ -1,14 +1,14 @@
|
|
1
|
-
runem/VERSION,sha256=
|
1
|
+
runem/VERSION,sha256=ygwViIed-jHcHrW47R-z5Om5lbqAJc3R4PPjymEoZCc,7
|
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
5
|
runem/blocking_print.py,sha256=S9dtgAeuTzc2-ht-vk9Wl6l-0PwS2tYbHDHDQQitrlA,841
|
6
6
|
runem/cli.py,sha256=wEt_Jnumhl8SiOdKdSJzLkJpWv6n3_Odhi_HeIixr1k,134
|
7
|
-
runem/command_line.py,sha256=
|
7
|
+
runem/command_line.py,sha256=k8yOlwfWliiJX3m33tkVzuGVQ2i-tuAgOENMWmP2u7Y,10999
|
8
8
|
runem/config.py,sha256=y-e6j84FDiLSKKw9ShDzRlnS5t2e81MW8fKSKtxtJtg,5935
|
9
9
|
runem/config_metadata.py,sha256=Vy7dx8F-Z5jEp16OP2y6vHHoGkyhoCaTG4KIVkMWR7M,3232
|
10
10
|
runem/config_parse.py,sha256=6mCamzWu7HTotmqFJmLZg9FFE6qe1-rpmo8_v5ESPW8,13401
|
11
|
-
runem/files.py,sha256=
|
11
|
+
runem/files.py,sha256=KEL4cdHRJrdK6I_jdy2wGZv5abPvgBPS1aAlmxKxPgc,3377
|
12
12
|
runem/hook_manager.py,sha256=9T-4omyjBPZ6ua_37UWpT1dwNMbb4SKwvxYcN6fVxLE,4163
|
13
13
|
runem/informative_dict.py,sha256=U7p9z78UwOT4TAfng1iDXCEyeYz6C-XZlx9Z1pWNVrI,1548
|
14
14
|
runem/job.py,sha256=QVXvzz67fJk__-h0womFQsB80-w41E3XRcHpxmRnv3o,2912
|
@@ -25,9 +25,9 @@ runem/runem.py,sha256=RIKF-l_ziGs0oKEueVkfygmnc_xiIdQo2qNDpiA-2Zs,13013
|
|
25
25
|
runem/runem_version.py,sha256=MbETwZO2Tb1Y3hX_OYZjKepEMKA1cjNvr-7Cqhz6e3s,271
|
26
26
|
runem/types.py,sha256=TLagRdB6-4gKqETAeJzo7-HFwBqQWGTwHcw2slSKN0U,7445
|
27
27
|
runem/utils.py,sha256=3N_kel9LsriiMq7kOjT14XhfxUOgz4hdDg97wlLKm3U,221
|
28
|
-
runem-0.0.
|
29
|
-
runem-0.0.
|
30
|
-
runem-0.0.
|
31
|
-
runem-0.0.
|
32
|
-
runem-0.0.
|
33
|
-
runem-0.0.
|
28
|
+
runem-0.0.31.dist-info/LICENSE,sha256=awOCsWJ58m_2kBQwBUGWejVqZm6wuRtCL2hi9rfa0X4,1211
|
29
|
+
runem-0.0.31.dist-info/METADATA,sha256=PtDmfylhA038JOFt9wKtxrzYjAXhnRGukpxj-BSfxsQ,29789
|
30
|
+
runem-0.0.31.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
31
|
+
runem-0.0.31.dist-info/entry_points.txt,sha256=nu0g_vBeuPihYtimbtlNusxWovylMppvJ8UxdJlJfvM,46
|
32
|
+
runem-0.0.31.dist-info/top_level.txt,sha256=gK6iqh9OfHDDpErioCC9ul_zx2Q5zWTALtcuGU7Vil4,6
|
33
|
+
runem-0.0.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|