Skip to content
View supiwmi's full-sized avatar
💭
codespace
💭
codespace
  • 19:18 (UTC +07:00)

Block or report supiwmi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
supiwmi/README.md

Hi there 👋

🌱 I’m currently learning AI/ML, OpenAI API, and others.

My Programming languages

Rank Languages
1 Python
2 Javascript
3 SQL
My DevOps Tools
Rank Languages
1 GitHub
2 Copilot
3 OpenAI
4 Docker
How to set up Python Development environment on Mac

Create python virtual environment with the same name of your github repo e.g. /Users/yourname/pyproject-web

  • python3 -m venv ~/.pyproject-web
  • source ~/.pyproject-web/bin/activate
  • which python

You should see something like this...

/Users/yourname/.python-web/bin/python

Next, Make Some Basic Scaffolding

  • touch Makefile

Add the below content to the Makefile

install:
   pip install --upgrade pip &&\
   	pip install -r requirements.txt


test:
#	python -m pytest -vv --cov=main --cov=mylib test_*.py


format:	
   black *.py


lint:
   pylint --disable=R,C --ignore-patterns=test_.*?py *.py 


container-lint:
   docker run --rm -i hadolint/hadolint < Dockerfile


refactor: format lint


deploy:
   #deploy goes here
   	
all: install lint test format deploy

  • touch requirements.txt Add the below content to the Makefile
click
pylint
pytest
black
ipython
boto3
  • touch hello.py && touch test_hello.py

Run the below command to install requirement libraries with pip

  • make install

Popular repositories Loading

  1. opscc opscc Public

    HTML

  2. tutorial tutorial Public

    PowerShell

  3. gitdemo gitdemo Public

    HTML

  4. 172.30.16.50-opsc-sup 172.30.16.50-opsc-sup Public

    Jupyter Notebook

  5. my-awesome-app my-awesome-app Public

    mydemo node app

  6. Jenkins-test Jenkins-test Public

    This is for my Jenkins-lab