-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomands_lines.txt
71 lines (58 loc) · 1.84 KB
/
comands_lines.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
################################################################################
############################ MAKE HIGH QUALITY CODE ############################
################################################################################
# CREATE ENV WITH PYTHON VERSION
conda create -n python-quality-code-env python=3.8.3 -y
# ACTIVATE ENV
conda activate python-quality-code-env
# SEARCH PACKAGES
# SEARCH FLAKE8 -> PEP-8
conda search flake8
# INSTALL PACKAGE
conda install flake8=3.8.2 -y
# EXECUTE FLAKE8
flake8 .
# SEARCH PYDOCSTYLE -> PEP-257
conda search pydocstyle
# INSTALL PACKAGE
conda install pydocstyle=5.0.2 -y
# EXECUTE PYDOCSTYLE
pydocstyle .
# SEARCH MYPY
conda search mypy
# INSTALL PACKAGE
conda install mypy=0.770 -y
# EXECUTE MYPY
mypy .
# SEARCH BLACK
conda search black
# INSTALL PACKAGE
conda install black=19.10b -y
# EXECUTE BLACK
black .
# CREATE SCRIPTS FOR AUTOMATION
# SCRIPT FOR DELETE AND CREATE THE ENV
scripts/create_env.sh
# ASSIGNING EXECUTION PERMITS
chmod +x scripts/create_env.sh
# SCRIPT FOR EXECUTE LINTERS
scripts/linters.sh
# ASSIGNING EXECUTION PERMITS
chmod +x scripts/linters.sh
# SCRIPT FOR CREATE GIT HOOK
.git/hooks/scripts/pre-commit.sh
# ASSIGNING EXECUTION PERMITS
chmod +x scripts/pre-commit.sh
# FROM THE PATH OF THE PROJECT EXECUTE A COMMIT
git commit -m "init app"
# INTEGRATE PRE-COMMIT LIBRARY
# SEARCH
conda search pre-commit -c conda-forge
# INSTALL
conda install pre-commit=2.4.0 -c conda-forge -y
# CREATE .pre-commit-config.yaml AND CHANGE IT
pre-commit sample-config > .pre-commit-config.yaml
# INSTALL HOOK IN .git/hooks
pre-commit install
# MAKE A COMMIT
git commit -m "Agregando pre-commit lib"