Skip to content

Commit 60c2d59

Browse files
author
Anis Da Silva Campos
committed
chore(local): add python and dependency management
1 parent 54d2618 commit 60c2d59

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Use a standard bash shell, avoid zsh or fish
2+
SHELL:=/bin/bash
3+
4+
# Select the default target, when you are simply running "make"
5+
.DEFAULT_GOAL:=lint
6+
7+
# local executables
8+
pip:=./venv/bin/pip
9+
pre-commit=./venv/bin/pre-commit
10+
11+
.PHONY: lint venv
12+
13+
venv:
14+
python3.7 -m venv venv
15+
$(pip) install pre-commit
16+
17+
lint:
18+
$(pre-commit) run --all-files

0 commit comments

Comments
 (0)