Skip to content

Commit 5225760

Browse files
committed
FINAL project rename (the extrat looked out of place)
1 parent 8dc0d1b commit 5225760

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ venv/
33
__pycache__/
44

55
test/*-fresh.html
6-
test/csskrrt*
6+
test/csskrt*

bulmaCsskrrt.py renamed to bulmaCsskrt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from bs4 import BeautifulSoup, Tag, NavigableString
2-
from csskrrt import Csskrrt
2+
from csskrt import Csskrt
33

44

5-
class BulmaCsskrrt(Csskrrt):
5+
class BulmaCsskrt(Csskrt):
66
def __init__(self, fileName):
77
tag_styles = {
88
'input': 'input',

csskrrt.py renamed to csskrt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import List, Dict, NoReturn
55

66

7-
class Csskrrt(ABC):
7+
class Csskrt(ABC):
88
def __init__(self, filename: str, tag_styles: Dict):
99
f = open(filename) # should be able to handle dirs (for later) todo
1010
f_data = f.read()
@@ -126,7 +126,7 @@ def output(self) -> NoReturn:
126126
file = os.path.basename(self.file_path)
127127
file_name, ext = os.path.splitext(file)
128128

129-
new_file_name = os.path.join(folder, 'csskrrt_' + file_name + ext)
129+
new_file_name = os.path.join(folder, 'csskrt_' + file_name + ext)
130130
with open(new_file_name, 'w') as out_file:
131131
out_file.write(self.soup.prettify())
132132

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import click
2-
from bulmaCsskrrt import BulmaCsskrrt
2+
from bulmaCsskrt import BulmaCsskrt
33

44

55
@click.command()
66
@click.argument('filename', type=click.Path(exists=True))
77
@click.option('--framework', default='bulma', help='Name of the framework')
88
def freshify(filename, framework):
9-
csskrrter = None
9+
csskrter = None
1010

1111
if framework == 'bootstrap':
1212
raise NotImplementedError
1313
elif framework == 'bulma':
14-
csskrrter = BulmaCsskrrt(filename)
14+
csskrter = BulmaCsskrt(filename)
1515

16-
csskrrter.freshify()
16+
csskrter.freshify()
1717

1818

1919
if __name__ == '__main__':

0 commit comments

Comments
 (0)