Skip to content

Commit 05c6f62

Browse files
Refactor (#306)
* fix : __init__.py updated * fix : autopep8 * fix : autopep8 scripts updated * fix : minor edit in __init__.py * fix : minor edit in autopep8.bat
1 parent a96f5ee commit 05c6f62

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

art/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,34 @@
99
from .params import ART_VERSION, FONT_NAMES, ART_NAMES, DECORATION_NAMES, DEFAULT_FONT
1010
from .params import ART_COUNTER, FONT_COUNTER, DECORATION_COUNTER
1111
from .params import NON_ASCII_ARTS, NON_ASCII_FONTS, ASCII_FONTS, ASCII_ARTS
12+
1213
__version__ = ART_VERSION
14+
15+
__all__ = [
16+
"artError",
17+
"aprint",
18+
"art",
19+
"randart",
20+
"tprint",
21+
"tsave",
22+
"text2art",
23+
"lprint",
24+
"line",
25+
"decor",
26+
"help_func",
27+
"get_font_dic",
28+
"set_default",
29+
"art_list",
30+
"font_list",
31+
"decor_list",
32+
"FONT_NAMES",
33+
"ART_NAMES",
34+
"DECORATION_NAMES",
35+
"DEFAULT_FONT",
36+
"ART_COUNTER",
37+
"FONT_COUNTER",
38+
"DECORATION_COUNTER",
39+
"NON_ASCII_ARTS",
40+
"NON_ASCII_FONTS",
41+
"ASCII_FONTS",
42+
"ASCII_ARTS"]

autopep8.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
python -m autopep8 art --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
1+
python -m autopep8 art --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --exclude tests --verbose
22
python -m autopep8 setup.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
33
python -m autopep8 art_profile.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
44
python -m autopep8 otherfile --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose

autopep8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
python -m autopep8 art --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
2+
python -m autopep8 art --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --exclude tests --verbose
33
python -m autopep8 setup.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
44
python -m autopep8 art_profile.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose
55
python -m autopep8 otherfile --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --max-line-length 120 --verbose

0 commit comments

Comments
 (0)