6f30ac1f14e78e2b1751d1c29ce9ab0c9a241c9d
David Blume first commit; just disconne...

David Blume authored 8 years ago

1) # testpython
2) 
3) This is just a test project. You can do anything here, test python
4) and IDE projects.
5) 
David Blume Upgrade to Python 3

David Blume authored 4 years ago

6) This branch is of Python 3 code. There's a python2 branch too.
7) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

8) ## Getting the project
David Blume first commit; just disconne...

David Blume authored 8 years ago

9) 
10) You can get a copy of this project by clicking on the
dblume Update http to https in REA...

dblume authored 1 year ago

11) [ZIP](https://git.dlma.com/testpython.git/zipball/main)
12) or [TAR](https://git.dlma.com/testpython.git/tarball/main) buttons
David Blume first commit; just disconne...

David Blume authored 8 years ago

13) near the top right of the GitList web page.
14) 
15) You can clone from the origin with:
16) 
17)     git clone ssh://USERNAME@dlma.com/~/git/testpython.git
18) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

19) ## Supported IDEs
David Blume Added PyCharm .idea project.

David Blume authored 8 years ago

20) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

21) This project has example Visual Studio Code, PyCharm, Atom, and
David Blume Clean up README.md a little...

David Blume authored 4 years ago

22) Sublime Text 3 projects.
David Blume Add a Microsoft Code worksp...

David Blume authored 4 years ago

23) 
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

24) ### tmux vim entr
25) 
26) The best IDE of all, for those who live on the CLI. Create two panes in tmux,
27) run vim in one, and run entr in the other with a command like:
28) 
dblume Use 'git ls-files' for entr

dblume authored 2 years ago

29)     git ls-files | entr -c sh -c 'ctags -R *; ./testpython.py'
30) 
31) or
32) 
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

33)     find . -type f -name \*.py | entr -c sh -c 'ctags -R *; ./testpython.py'
34) 
dblume Use 'git ls-files' for entr

dblume authored 2 years ago

35) or to run in pdb:
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

36) 
dblume Use 'git ls-files' for entr

dblume authored 2 years ago

37)     git ls-files | entr -c sh -c 'ctags -R *; python3 -m pdb testpython.py'
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

38) 
39) Tip: In vim you can do a multi-file grep and use the QuickFix window with commands like...
40) 
41)     :grep -rI searchterm .
42)     :cw
43) 
dblume Update http to https in REA...

dblume authored 1 year ago

44) See [this QuickFix tip for sorting results by filename](https://git.dlma.com/dotfiles.git/commit/0cb566c53caf931c8b3f423dcfded4660b220cbb).
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

45) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

46) ### Visual Studio Code
David Blume Add a Microsoft Code worksp...

David Blume authored 4 years ago

47) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

48) Download Microsoft's Visual Studio Code from
49) [code.visualstudio.com](https://code.visualstudio.com/). Code uses the
dblume Update README.md for change...

dblume authored 3 years ago

50) [testpython.code-workspace](/testpython.git/blob/main/testpython.code-workspace)
David Blume Added links to README.md. S...

David Blume authored 4 years ago

51) project file. I prefer this to GitHub's Atom. Both are based on GitHub's Electron.
David Blume Add Atom atom-project-manag...

David Blume authored 8 years ago

52) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

53) ### PyCharm
David Blume Add Atom atom-project-manag...

David Blume authored 8 years ago

54) 
dblume Update README.md for change...

dblume authored 3 years ago

55) PyCharm uses the [.idea](/testpython.git/tree/main/.idea/) directory. JetBrains suggests [sharing the .idea directory
David Blume Clean up README.md a little...

David Blume authored 4 years ago

56) except for workspace.xml and tasks.xml](https://intellij-support.jetbrains.com/hc/en-us/articles/206544839).
David Blume Added PyCharm .idea project.

David Blume authored 8 years ago

57) 
David Blume Fix header level for Sublime.

David Blume authored 4 years ago

58) ### Sublime Text 3
David Blume Added links to README.md. S...

David Blume authored 4 years ago

59) 
David Blume Document 'tmux vim entr' as...

David Blume authored 3 years ago

60) [Sublime](https://www.sublimetext.com/) uses the
dblume Update README.md for change...

dblume authored 3 years ago

61) [testpython.sublime-project](/testpython.git/blob/main/testpython.sublime-project) file.
David Blume Added links to README.md. S...

David Blume authored 4 years ago

62) 
dblume Add pycodestyle for PEP-8....

dblume authored 3 months ago

63) ## Style
David Blume Add Atom atom-project-manag...

David Blume authored 8 years ago

64) 
dblume Add pycodestyle for PEP-8....

dblume authored 3 months ago

65) If you want your style similar to PEP-9, you can check the style of your code 
66) with ''pycodestyle'':
David Blume Add Atom atom-project-manag...

David Blume authored 8 years ago

67) 
dblume Don't let pycodestyle warn...

dblume authored 3 months ago

68)     pycodestyle --first --show-source --ignore=E501,W503 *.py
David Blume Add Atom atom-project-manag...

David Blume authored 8 years ago

69) 
dblume Add requirements.txt

dblume authored 2 years ago

70) ## Requirements
71) 
72) requirements.txt specifies the requirements for Python modules and apps.
73) Install the requirements with:
74) 
75)     python3 -m pip install -r requirements.txt
76) 
77) ### Generating requirements.txt
78) 
79) Ideally, track why modules are required, create requirements.in with only the
80) the top-level requirements, and let pip-compile (from pip-tools) figure out the
81) next-level dependencies.
82) 
83)     (venv) $ python3 -m pip install pip-tools
84)     (venv) $ pip-compile requirements.in
85) 
86)  Otherwise, you can make requirements.txt directly with pip freeze:
87) 
88)     (venv) $ python3 -m pip freeze > requirements.txt
89) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

90) ## Current Features
David Blume first commit; just disconne...

David Blume authored 8 years ago

91) 
92) * Multiple directories for testing build systems and IDEs
93) 
David Blume Added links to README.md. S...

David Blume authored 4 years ago

94) ## Is it any good?