Skip to content

Commit 1e9aa6a

Browse files
Import termcolor sooner
1 parent 8883d5b commit 1e9aa6a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/package.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on:
22
release:
33
types:
44
- created
5-
name: Generate distributables v8
5+
name: Generate distributables v9
66
jobs:
77
generate-artifacts:
88
name: Generate artifacts
@@ -22,12 +22,12 @@ jobs:
2222
run: sudo apt-get install -y groff help2man python3-setuptools
2323
- name: Install pipreqs
2424
run: pip3 install pipreqs yq
25-
- name: Generate requirements.txt
26-
run: |
27-
make requirements.txt
28-
sed -i '/termcolor/d' requirements.txt
29-
- name: Install requirements
30-
run: pip3 install -r requirements.txt
25+
# - name: Generate requirements.txt
26+
# run: |
27+
# make requirements.txt
28+
# sed -i '/termcolor/d' requirements.txt
29+
# - name: Install requirements
30+
# run: pip3 install -r requirements.txt
3131
- name: Generate the artifacts
3232
run: |
3333
export PATH=$PATH:~/.local/bin

src/keycov/text_output.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from re import match
88
from shutil import get_terminal_size
99
from sys import exit, platform, stderr, stdout
10+
from termcolor import ATTRIBUTES, colored as coloured, COLORS as COLOURS, HIGHLIGHTS
1011
from types import SimpleNamespace
1112
from typing import List, Union
1213

@@ -117,8 +118,6 @@ def apply_formatting(pargs:Namespace, formatting:int, s:str) -> str:
117118
if not use_colour(pargs):
118119
return s
119120

120-
from termcolor import ATTRIBUTES, colored as coloured, COLORS as COLOURS, HIGHLIGHTS
121-
122121
formatting_codes:str = ''
123122
formats_to_apply:[str]
124123
if type(formatting) == list:

0 commit comments

Comments
 (0)