Skip to content

Commit c98d14d

Browse files
Move to python3 venv and update vscode settings (#1123)
1 parent d0772fe commit c98d14d

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
33
"ms-python.python",
4-
"EditorConfig.editorconfig"
4+
"EditorConfig.editorconfig",
5+
"ms-python.flake8",
56
]
67
}

.vscode/settings.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@
1010

1111
// Formatting
1212
"editor.formatOnSave": true,
13-
"python.formatting.provider": "black",
14-
15-
// Linting
16-
"python.linting.enabled": true,
17-
"python.linting.pylintEnabled": false,
18-
"python.linting.flake8Enabled": true,
1913

2014
// Tests
2115
"python.testing.unittestEnabled": false,
2216
"python.testing.pytestEnabled": true,
23-
"python.testing.nosetestsEnabled": false
17+
18+
"python.terminal.activateEnvironment": true,
19+
"python.defaultInterpreterPath": "~/venv/bin/python3"
2420
}

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
VENV_NAME?=venv
22
PIP?=pip
3-
PYTHON?=python
3+
PYTHON?=python3
44

55
venv: $(VENV_NAME)/bin/activate
66

7-
$(VENV_NAME)/bin/activate: setup.py
8-
$(PIP) install --upgrade pip virtualenv
9-
@test -d $(VENV_NAME) || $(PYTHON) -m virtualenv --clear $(VENV_NAME)
7+
$(VENV_NAME)/bin/activate: setup.py requirements.txt
8+
@test -d $(VENV_NAME) || $(PYTHON) -m venv --clear $(VENV_NAME)
109
${VENV_NAME}/bin/python -m pip install -r requirements.txt
1110
@touch $(VENV_NAME)/bin/activate
1211

0 commit comments

Comments
 (0)