generated from ran-isenberg/aws-lambda-handler-cookbook
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: imrpove docs and makefile (#15)
Co-authored-by: Ran Isenberg <[email protected]>
- Loading branch information
1 parent
b947dd0
commit fc80942
Showing
4 changed files
with
30 additions
and
16 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
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,26 @@ | ||
import os | ||
from pathlib import Path | ||
import subprocess | ||
|
||
def main(): | ||
print("Running 'git init'") | ||
subprocess.run(['git', 'init'], check=True) | ||
|
||
print("Running 'pip install --upgrade pip pre-commit poetry'") | ||
subprocess.run(['pip', 'install', '--upgrade', 'pip', 'pre-commit', 'poetry'], check=True) | ||
|
||
print("Running 'pre-commit install'") | ||
|
||
subprocess.run(['pre-commit', 'install'], check=True) | ||
|
||
print("Running 'poetry config --local virtualenvs.in-project true'") | ||
subprocess.run(['poetry', 'config', '--local', 'virtualenvs.in-project', 'true'], check=True) | ||
|
||
print("Running 'poetry install'") | ||
subprocess.run(['poetry', 'install'], check=True) | ||
|
||
print("Project successfully initialized") | ||
return | ||
|
||
if __name__ == "__main__": | ||
main() |
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