plone / plone.recipe.codeanalysis

provides static code analysis for Buildout-based Python projects, including flake8, JSHint, CSS Lint, and other code checks
https://pypi.org/project/plone.recipe.codeanalysis/
11 stars 5 forks source link

I001 isort found an import in the wrong position #198

Closed hvelarde closed 7 years ago

hvelarde commented 7 years ago

plone.recipe.codeanalysis = 2.2 with isort = 4.2.5 and flake8_isort = 2.1.2 gives the following output:

# bin/code-analysis
Check clean lines....................[ OK ] in 0.139s
Flake8..........................[ FAILURE ] in 1.505s
/home/hvelarde/collective/publishthis/src/collective/publishthis/testing.py:4:1: I001 isort found an import in the wrong position
/home/hvelarde/collective/publishthis/src/collective/publishthis/testing.py:5:1: I001 isort found an import in the wrong position
/home/hvelarde/collective/publishthis/src/collective/publishthis/testing.py:6:1: I001 isort found an import in the wrong position
/home/hvelarde/collective/publishthis/src/collective/publishthis/testing.py:7:1: I001 isort found an import in the wrong position
The command "bin/code-analysis" exited with 1 in 1.552s.

setup.cfg contains the collowing:

[isort]
force_alphabetical_sort = True
force_single_line = True
line_length = 200
lines_after_imports = 2
not_skip = __init__.py

first lines in testing.py are these:

# -*- coding: utf-8 -*-
from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.testing import z2

class Fixture(PloneSandboxLayer):

any idea of what is going on here?

gforcada commented 7 years ago

Most probably is https://github.com/gforcada/flake8-isort/issues/23 so nothing to do with plone.recipe.codeanalysis per se.