File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ # # GLOBALS
2
+
3
+ PROJECT_NAME = cookiecutter-data-science
4
+ PYTHON_VERSION = 3.10
5
+ PYTHON_INTERPRETER = python
6
+
7
+
1
8
# ## UTILITIES
2
9
_prep :
3
10
rm -f ** /* /.DS_store
4
11
5
12
6
- # ## DEV TOOLS
13
+ # ## DEV COMMANDS
14
+
15
+ # # Set up python interpreter environment
16
+ create_environment :
17
+ conda create --name $(PROJECT_NAME ) python=$(PYTHON_VERSION ) -y
18
+ @echo " >>> conda env created. Activate with:\nconda activate $( PROJECT_NAME) "
19
+
20
+ # # Install Python Dependencies
7
21
requirements :
8
- pip install -U -r dev-requirements.txt
22
+ $( PYTHON_INTERPRETER ) -m pip install -r dev-requirements.txt
9
23
24
+ # # Format the code using isort and black
10
25
format :
11
26
isort ccds hooks tests
12
27
black ccds hooks tests setup.py
13
-
28
+
29
+ # # Lint using flake8 + black
14
30
lint :
15
31
flake8 ccds hooks tests setup.py
16
32
black --check ccds hooks tests setup.py
@@ -41,4 +57,4 @@ manual-test: _prep _clean_manual_test
41
57
42
58
manual-test-debug : _prep _clean_manual_test
43
59
mkdir -p manual_test
44
- cd manual_test && python -m pdb ../ccds/__main__.py ..
60
+ cd manual_test && python -m pdb ../ccds/__main__.py ..
You can’t perform that action at this time.
0 commit comments