-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdryadsfile
36 lines (27 loc) · 896 Bytes
/
dryadsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
from dryads import Dryads, run_shell_cmd
def format():
"""Dryads was developed in the Python 3.7 environment and formatted using the latest version of the black library in Python"""
def get_files(dirname: str):
return [
os.path.join(root, file)
for root, dir, files in os.walk(dirname)
for file in files
if file.endswith("py")
]
files = get_files("dryads") + get_files("test") + ["dryadsfile"]
run_shell_cmd("black " + " ".join(files))
CMDS = {
"reload": [
"poetry build",
"python -m pip install ./dist/dryads-1.3.0-py3-none-any.whl --force-reinstall",
],
"test": {
"regression": [
"python ./test/test_exception.py",
"python ./test/test_help.py",
]
},
"format": format,
}
Dryads(CMDS)