This is my TUTORIAL project for python.
I'm japanese. so some script include Japanese comments. 😉
- Python 3.7 or higher (I'm using Python 3.8)
- JetBrains PyCharm
- VisualStudio Code
$ cd try-python
$ python3 -m venv .venv
$ source .venv/bin/activate
$ python -m pip install -U -r requirements-dev.txt
$ cd try-python
$ source .venv/bin/activate
$ pytest
Each python scripts can be run individually.
- Launch from PyCharm
or
$ cd try-python
$ source .venv/bin/activate
$ python -m trypython
{
"editor.insertSpaces": true,
"editor.tabSize": 4,
"python.pythonPath": "/path/to/python",
"python.terminal.launchArgs": [
"-B",
"-c",
"\"import IPython; IPython.start_ipython()\""
],
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.unitTest.pyTestEnabled": true,
"python.linting.pydocstyleEnabled": false
}
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"pythonPath": "${config:python.pythonPath}",
"env": {
"PYTHONPATH": "${workspaceFolder}",
"PYTHONDONTWRITEBYTECODE": "1"
}
}
]
}
😃