-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Use Makefile and Python3 virtual env to install package.
2. Format python files in this plugion.
- Loading branch information
Showing
7 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.pyc | ||
thirdparty/** | ||
config/** | ||
build/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Refer to davidhalter/jedi-vim. | ||
BUILD_VIRTUAL_ENV:=build/venv | ||
|
||
$(dir $(BUILD_VIRTUAL_ENV)): | ||
mkdir -p $@ | ||
|
||
$(BUILD_VIRTUAL_ENV): | $(dir $(BUILD_VIRTUAL_ENV)) | ||
python3 -m venv $@ | ||
# $|/bin/python -m pip upgrade | ||
|
||
$(BUILD_VIRTUAL_ENV)/bin/isort: | $(BUILD_VIRTUAL_ENV) | ||
$|/bin/python -m pip install -q isort==4.3.21 | ||
|
||
$(BUILD_VIRTUAL_ENV)/bin/yapf: | $(BUILD_VIRTUAL_ENV) | ||
$|/bin/python -m pip install -q yapf==0.30.0 | ||
|
||
isort: $(BUILD_VIRTUAL_ENV)/bin/isort | ||
$(BUILD_VIRTUAL_ENV)/bin/isort --help | ||
|
||
yapf: $(BUILD_VIRTUAL_ENV)/bin/yapf | ||
$(BUILD_VIRTUAL_ENV)/bin/yapf --help | ||
|
||
check: isort yapf | ||
|
||
clean: | ||
rm -rf build | ||
|
||
.PHONY: check clean isort yapf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
import shutil | ||
import subprocess | ||
import tempfile | ||
|
||
import vim | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import vim | ||
|
||
from abstract_formatter import AbstractFormatter | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import vim | ||
|
||
from json_formatter import JsonFormatter | ||
from python_formatter import PythonFormatter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters