name mode size
.idea 040000
bored 040000
counter 040000
decorators 040000
sitesize 040000 100644 3.31kB 100644 1.72kB
project.cson 100644 419B 100644 274B
requirements.txt 100644 360B
testpython.code-workspace 100644 204B 100755 2.93kB
testpython.sublime-project 100644 710B
# testpython This is just a test project. You can do anything here, test python and IDE projects. This branch is of Python 3 code. There's a python2 branch too. ## Getting the project You can get a copy of this project by clicking on the [ZIP]( or [TAR]( buttons near the top right of the GitList web page. You can clone from the origin with: git clone ssh:// ## Supported IDEs This project has example Visual Studio Code, PyCharm, Atom, and Sublime Text 3 projects. ### tmux vim entr The best IDE of all, for those who live on the CLI. Create two panes in tmux, run vim in one, and run entr in the other with a command like: git ls-files | entr -c sh -c 'ctags -R *; ./' or find . -type f -name \*.py | entr -c sh -c 'ctags -R *; ./' or to run in pdb: git ls-files | entr -c sh -c 'ctags -R *; python3 -m pdb' Tip: In vim you can do a multi-file grep and use the QuickFix window with commands like... :grep -rI searchterm . :cw See [this QuickFix tip for sorting results by filename]( ### Visual Studio Code Download Microsoft's Visual Studio Code from []( Code uses the [testpython.code-workspace](/testpython.git/blob/main/testpython.code-workspace) project file. I prefer this to GitHub's Atom. Both are based on GitHub's Electron. ### PyCharm PyCharm uses the [.idea](/testpython.git/tree/main/.idea/) directory. JetBrains suggests [sharing the .idea directory except for workspace.xml and tasks.xml]( ### Sublime Text 3 [Sublime]( uses the [testpython.sublime-project](/testpython.git/blob/main/testpython.sublime-project) file. ### GitHub's Atom Download from []( These are useful modules: * [read-only-indicator]( by alefragnani. (Feature not available in Sublime Text 3.) * [script]( by rgbkrk, for running scripts. * [project-manager]( by danielbrodin. If you install project-manager, it looks for [a local "project.cson" file](/testpython.git/blob/main/project.cson), and merges those settings with what is in the .atom `projects.cson` file. ## Requirements requirements.txt specifies the requirements for Python modules and apps. Install the requirements with: python3 -m pip install -r requirements.txt ### Generating requirements.txt Ideally, track why modules are required, create with only the the top-level requirements, and let pip-compile (from pip-tools) figure out the next-level dependencies. (venv) $ python3 -m pip install pip-tools (venv) $ pip-compile Otherwise, you can make requirements.txt directly with pip freeze: (venv) $ python3 -m pip freeze > requirements.txt ## Current Features * Multiple directories for testing build systems and IDEs ## Is it any good? [Yes](