Skip to content

Instantly share code, notes, and snippets.

markmevans /
Created Feb 19, 2014
A hack for PyBuilder files to import support code and/or build specific plugins without cluttering the project's root directory.
# Add the following to the top of your file:
import sys
sys.path.insert(0, 'bldsup') # Project subdirectory for build specific extensions.
markmevans /
Created Feb 11, 2014
A hack for PyBuilder files so `pyb publish` will work in a filesystem that does not support hardlinks (like VirtualBox shared filesystems.)
# Hack the distutils_plugin's SETUP_TEMPLATE to disable hardlinks.
import string
from pybuilder.core import init
from pybuilder.plugins.python import distutils_plugin
# sdist_hack: Remove reference to to disable using hardlinks when
View flake8.xml
<!-- Drop this in ~/Library/Preferences/PyCharm30/tools -->
<!-- make sure you set the path to flake8 executable for your machine in the COMMAND option -->
<!-- $ git clone flake8.xml -->
<toolSet name="Flake8">
<tool name="Flake8 File" showInMainMenu="true" showInEditor="true" showInProject="true" showInSearchPopup="false" disabled="false" useConsole="true" synchronizeAfterRun="true">
<option name="COMMAND" value="/usr/local/bin/flake8" />
<option name="PARAMETERS" value="--max-line-length=80 $FileDir$/$FileName$" />
<option name="WORKING_DIRECTORY" value="$FileDir$" />