Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22847

Andrzej Skupień: Joe

$
0
0

In this article I write about Joe– Python tool that makes creating .gitignore files much easier.

Joe

Problem

Every time I create new project, there comes time, when I want to put it under git control and do the first commit:

$ git init
Initialized empty Git repository in </path/to/directory>
$ git status # good practice - check before commit# (...)
Untracked files:
(use "git add <file>..." to include in what will be committed)
__init__.pyc
__pycache__/
openstack.pyc
test.py

In this moment I realize that I have forgot to add .gitignore. And to be honest, hate to do this. What should I place there? Should I put this __pycache__ folder too?

But have no fear Joe is here.

Joe will generate .gitignore for you:

$ joe python > .gitignore
$ cat .gitignore
### joe made this: https://goel.io/joe#####=== Python ===###### Byte-compiled / optimized / DLL files
__pycache__
\*.py[cod]# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
#( ... )

Joe can create gitignore rules for many other files:

$ joe list
actionscript, ada, agda, android, anjuta, appceleratortitanium, archives,
archlinuxpackages, autotools, bricxcc, c, c++, cakephp, cfwheels,
chefcookbook, clojure, cloud9, cmake, codeigniter, codekit, commonlisp,
composer, concrete5, coq, craftcms, cvs, dart, darteditor, delphi, dm,
dreamweaver, drupal, eagle, eclipse, eiffelstudio, elisp, elixir, emacs,
ensime, episerver, erlang, espresso, expressionengine, extjs, fancy, finale,
flexbuilder, forcedotcom, fortran, fuelphp, gcov, gitbook, go, gradle,
grails, gwt, haskell, idris, igorpro, ipythonnotebook, java, jboss,
jdeveloper, jekyll, jetbrains, joomla, jython, kate, kdevelop4, kohana,
labview, laravel, lazarus, leiningen, lemonstand, libreoffice, lilypond,
linux, lithium, lua, lyx, magento, matlab, maven, mercurial, mercury,
metaprogrammingsystem, meteor, microsoftoffice, modelsim, momentics,
monodevelop, nanoc, netbeans, nim, ninja, node, notepadpp, objective-c,
ocaml, opa, opencart, oracleforms, osx, packer, perl, phalcon, playframework,
plone, prestashop, processing, python, qooxdoo, qt, r, rails, redcar, redis,
rhodesrhomobile, ros, ruby, rust, sass, sbt, scala, scons, scrivener, sdcc,
seamgen, sketchup, slickedit, stella, sublimetext, sugarcrm, svn, swift,
symfony, symphonycms, tags, tex, textmate, textpattern, tortoisegit,
turbogears2, typo3, umbraco, unity, vagrant, vim, virtualenv, visualstudio,
vvvv, waf, webmethods, windows, wordpress, xcode, xilinxise, xojo, yeoman,
yii, zendframework, zephir

So if you are convinced, you will find Joe here


Viewing all articles
Browse latest Browse all 22847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>