Skip to content

Commit

Permalink
some cleanups and install code-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Sep 22, 2016
1 parent 1909b05 commit 81a75e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 7 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[buildout]
develop = .
parts = interpreter test
parts = interpreter test code-analysis

[interpreter]
recipe = zc.recipe.egg
Expand All @@ -10,3 +10,9 @@ eggs = RestrictedPython
[test]
recipe = zc.recipe.testrunner
eggs = RestrictedPython

[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-max-complexity = 15
2 changes: 0 additions & 2 deletions src/RestrictedPython/RCompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
Python standard library.
"""

import ast

from compiler import ast as c_ast
from compiler import parse as c_parse
from compiler import misc as c_misc
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = coverage-clean,py27,py34,py35,py36,pypy,coverage-report
envlist = coverage-clean,py{27,34,35,36,py},coverage-report

[testenv]
install_command = pip install --egg {opts} {packages}
Expand Down

0 comments on commit 81a75e2

Please sign in to comment.