Skip to content

Commit

Permalink
Merge 739d6a4 into f52a347
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Sep 19, 2015
2 parents f52a347 + 739d6a4 commit 1608c09
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 260 deletions.
4 changes: 4 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[settings]
force_alphabetical_sort=True
force_single_line=True
lines_after_imports=2
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ Change history
- Remove leftovers from utf-8 checker removal.
[gforcada]

- Remove imports checker,
`flake8-isort <https://pypi.python.org/pypi/flake8-isort>`_
does the same job.
[tisto] [gforcada]

2.0.2 (2015-09-03)
------------------

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ include bootstrap-buildout.py
include buildout.cfg
include extras.cfg
include travis.cfg
include .isort.cfg
10 changes: 0 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ This configuration looks like this:
# Conventions
clean-lines = True
clean-lines-exclude = ${:jscs-exclude}
imports = True
# i18n
find-untranslated = True
i18ndude-bin = ${buildout:bin-directory}/i18ndude
Expand Down Expand Up @@ -394,15 +393,6 @@ The recipe supports the following options:
Allows you to specify directories and/or files which you don't want to be
checked. Default is none.

**imports**
If set to True, checks that imports in Python files follow `plone.api
conventions`_. This also includes checking for alphabetically sorted
import statements. Default is ``False``.

**imports-exclude**
Allows you to specify directories and/or files which you don't want to be
checked. Default is none.

**return-status-codes**
If set to True, the ``bin/code-analysis`` script returns an error code
that Continuous Integration servers (like Travis CI) can use to fail or
Expand Down
3 changes: 2 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ flake8-extensions =
flake8-blind-except
flake8-coding
flake8-debugger
flake8-isort
flake8-quotes
pep8-naming
imports = True
jshint = False
jshint-bin = ${buildout:directory}/bin/jshint
return-status-codes = False
Expand All @@ -66,3 +66,4 @@ zc.buildout =
zc.recipe.egg =
zope.testrunner = 4.0.4
transaction = 1.2.0
isort = 4.2.0
4 changes: 0 additions & 4 deletions plone/recipe/codeanalysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from plone.recipe.codeanalysis.csslint import CSSLint
from plone.recipe.codeanalysis.flake8 import Flake8
from plone.recipe.codeanalysis.i18ndude import I18NDude
from plone.recipe.codeanalysis.imports import Imports
from plone.recipe.codeanalysis.jscs import JSCS
from plone.recipe.codeanalysis.jshint import JSHint
from plone.recipe.codeanalysis.zptlint import ZPTLint
Expand All @@ -22,7 +21,6 @@
CleanLines,
Flake8,
I18NDude,
Imports,
JSCS,
JSHint,
ZPTLint,
Expand Down Expand Up @@ -71,8 +69,6 @@ def __init__(self, buildout, name, options):
# clean lines
self.options.setdefault('clean-lines', 'False')
self.options.setdefault('clean-lines-exclude', '')
# imports
self.options.setdefault('imports', 'False')
# Jenkins output
self.options.setdefault('jenkins', 'False')
self.options.setdefault('flake8-filesystem', 'False')
Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from abc import abstractproperty
from tempfile import TemporaryFile
from time import time

import os
import re
import subprocess
Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/check_manifest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import os
import re
import subprocess
Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/clean_lines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import re


Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/csslint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import re


Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/flake8.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import os


Expand Down
78 changes: 0 additions & 78 deletions plone/recipe/codeanalysis/imports.py

This file was deleted.

1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/jscs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import re


Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/jshint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.analyser import Analyser
from plone.recipe.codeanalysis.analyser import console_factory

import re


Expand Down
1 change: 1 addition & 0 deletions plone/recipe/codeanalysis/testing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from shutil import rmtree
from tempfile import mkdtemp

import os
import unittest

Expand Down
2 changes: 1 addition & 1 deletion plone/recipe/codeanalysis/tests/test_csslint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from plone.recipe.codeanalysis.csslint import CSSLint
from plone.recipe.codeanalysis.csslint import console_script
from plone.recipe.codeanalysis.csslint import CSSLint
from plone.recipe.codeanalysis.testing import CodeAnalysisTestCase
from shutil import rmtree
from tempfile import mkdtemp
Expand Down
2 changes: 2 additions & 0 deletions plone/recipe/codeanalysis/tests/test_docs.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# -*- coding: utf-8 -*-
from zope.testing import renormalizing

import doctest
import os
import unittest
import zc.buildout.testing
import zc.buildout.tests


optionflags = (
doctest.ELLIPSIS |
doctest.NORMALIZE_WHITESPACE |
Expand Down
2 changes: 1 addition & 1 deletion plone/recipe/codeanalysis/tests/test_flake8.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from plone.recipe.codeanalysis.flake8 import Flake8
from plone.recipe.codeanalysis.flake8 import console_script
from plone.recipe.codeanalysis.flake8 import Flake8
from plone.recipe.codeanalysis.testing import CodeAnalysisTestCase
from shutil import rmtree
from tempfile import mkdtemp
Expand Down
2 changes: 1 addition & 1 deletion plone/recipe/codeanalysis/tests/test_i18ndude.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from plone.recipe.codeanalysis.i18ndude import I18NDude
from plone.recipe.codeanalysis.i18ndude import console_script
from plone.recipe.codeanalysis.i18ndude import I18NDude
from plone.recipe.codeanalysis.testing import CodeAnalysisTestCase
from testfixtures import OutputCapture

Expand Down

0 comments on commit 1608c09

Please sign in to comment.