Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Add flymake scripts for Erlang and Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
eproxus committed Mar 18, 2011
1 parent f242356 commit e5c783c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions erlang_flymake
@@ -0,0 +1,13 @@
#!/usr/local/bin/escript
-export([main/1]).

main([File]) ->
Opts = [strong_validation, report,
{i, "../include"},
{i, "../.."},
warn_obsolete_guard, warn_unused_import,
warn_shadow_vars, warn_export_vars],
compile:file(File, Opts);
main([]) ->
io:format("usage: flymake FILE~n"),
halt(1).
8 changes: 8 additions & 0 deletions pycheck
@@ -0,0 +1,8 @@
#!/bin/bash

epylint "$1" 2>/dev/null
pyflakes "$1"
pep8 --ignore=E221,E701,E202 --repeat "$1"
true

# courtesy of http://stackoverflow.com/questions/1259873

0 comments on commit e5c783c

Please sign in to comment.