tox.ini
changeset 11474 28311db7a2a5
parent 11465 10ecd586a9a8
child 11475 d2fcd81b7ca9
equal deleted inserted replaced
11473:f765b1b16a2c 11474:28311db7a2a5
     1 [tox]
     1 [tox]
     2 envlist =
     2 envlist =
     3   check-manifest,
     3   check-manifest,flake8,
     4   py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,migractions,sobjects,web,wsgi},
     4   py27-{cubicweb,dataimport,devtools,entities,etwist,ext,hooks,server,migractions,sobjects,web,wsgi},
     5   py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,migractions,sobjects,web,wsgi}
     5   py34-{cubicweb,dataimport,devtools,entities,ext,hooks,server,migractions,sobjects,web,wsgi}
     6 
     6 
     7 [testenv]
     7 [testenv]
     8 sitepackages = True
     8 sitepackages = True
    39   migractions: {envpython} -m pytest {toxinidir}/cubicweb/server/test/unittest_migractions.py {posargs}
    39   migractions: {envpython} -m pytest {toxinidir}/cubicweb/server/test/unittest_migractions.py {posargs}
    40   sobjects: {envpython} -m pytest {toxinidir}/cubicweb/sobjects/test {posargs}
    40   sobjects: {envpython} -m pytest {toxinidir}/cubicweb/sobjects/test {posargs}
    41   web: {envpython} -m pytest {toxinidir}/cubicweb/web/test {posargs}
    41   web: {envpython} -m pytest {toxinidir}/cubicweb/web/test {posargs}
    42   wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs}
    42   wsgi: {envpython} -m pytest {toxinidir}/cubicweb/wsgi/test {posargs}
    43 
    43 
       
    44 [testenv:flake8]
       
    45 skip_install = true
       
    46 deps =
       
    47   flake8 >= 3
       
    48 commands = flake8 {posargs:{toxinidir}}
       
    49 
    44 [testenv:doc]
    50 [testenv:doc]
    45 changedir = doc
    51 changedir = doc
    46 deps =
    52 deps =
    47   sphinx
    53   sphinx
    48 commands =
    54 commands =
    58 # https://github.com/mgedmin/check-manifest/issues/69
    64 # https://github.com/mgedmin/check-manifest/issues/69
    59     --ignore cubicweb/devtools/test/data/cubes/i18ntestcube,cubicweb/test/data/legacy_cubes*
    65     --ignore cubicweb/devtools/test/data/cubes/i18ntestcube,cubicweb/test/data/legacy_cubes*
    60 
    66 
    61 [pytest]
    67 [pytest]
    62 python_files = *test_*.py
    68 python_files = *test_*.py
       
    69 
       
    70 [flake8]
       
    71 format = pylint
       
    72 ignore = W503
       
    73 max-line-length = 100
       
    74 exclude = setup.py,doc/*,cubicweb/misc/*,cubicweb/test/*,cubicweb/*/test/*,.tox/*
       
    75 filename=
       
    76   cubicweb/dataimport/csv.py,
       
    77   cubicweb/dataimport/importer.py,
       
    78   cubicweb/dataimport/massive_store.py,
       
    79   cubicweb/dataimport/stores.py,
       
    80   cubicweb/dataimport/test/data-massimport/schema.py,
       
    81   cubicweb/dataimport/test/data/schema.py,
       
    82   cubicweb/dataimport/test/test_csv.py,
       
    83   cubicweb/dataimport/test/test_pgstore.py,
       
    84   cubicweb/dataimport/test/test_stores.py,
       
    85   cubicweb/dataimport/test/unittest_importer.py,
       
    86   cubicweb/devtools/test/data/cubes/i18ntestcube/__init__.py,
       
    87   cubicweb/devtools/test/data/cubes/__init__.py,
       
    88   cubicweb/devtools/test/data/schema.py,
       
    89   cubicweb/devtools/testlib.py,
       
    90   cubicweb/devtools/test/unittest_devctl.py,
       
    91   cubicweb/devtools/test/unittest_i18n.py,
       
    92   cubicweb/devtools/test/unittest_webtest.py,
       
    93   cubicweb/devtools/webtest.py,
       
    94   cubicweb/entities/adapters.py,
       
    95   cubicweb/entities/test/unittest_base.py,
       
    96   cubicweb/etwist/__init__.py,
       
    97   cubicweb/ext/__init__.py,
       
    98   cubicweb/hooks/test/data/hooks.py,
       
    99   cubicweb/hooks/test/unittest_notification.py,
       
   100   cubicweb/hooks/test/unittest_security.py,
       
   101   cubicweb/hooks/test/unittest_syncsession.py,
       
   102   cubicweb/__init__.py,
       
   103   cubicweb/__main__.py,
       
   104   cubicweb/pylintext.py,
       
   105   cubicweb/server/repository.py,
       
   106   cubicweb/server/schema2sql.py,
       
   107   cubicweb/server/session.py,
       
   108   cubicweb/server/sqlutils.py,
       
   109   cubicweb/server/test/datacomputed/migratedapp/schema.py,
       
   110   cubicweb/server/test/datacomputed/schema.py,
       
   111   cubicweb/server/test/data/entities.py,
       
   112   cubicweb/server/test/data-migractions/cubes/fakecustomtype/__init__.py,
       
   113   cubicweb/server/test/data-migractions/cubes/fakeemail/__init__.py,
       
   114   cubicweb/server/test/data-migractions/cubes/__init__.py,
       
   115   cubicweb/server/test/data-migractions/migratedapp/__init__.py,
       
   116   cubicweb/server/test/data-schema2sql/__init__.py,
       
   117   cubicweb/server/test/unittest_checkintegrity.py,
       
   118   cubicweb/server/test/unittest_ldapsource.py,
       
   119   cubicweb/skeleton/test/pytestconf.py,
       
   120   cubicweb/sobjects/test/unittest_notification.py,
       
   121   cubicweb/sobjects/test/unittest_register_user.py,
       
   122   cubicweb/sobjects/textparsers.py,
       
   123   cubicweb/test/data/cubes/comment/__init__.py,
       
   124   cubicweb/test/data/cubes/comment/__pkginfo__.py,
       
   125   cubicweb/test/data/cubes/email/entities.py,
       
   126   cubicweb/test/data/cubes/email/hooks.py,
       
   127   cubicweb/test/data/cubes/email/__init__.py,
       
   128   cubicweb/test/data/cubes/email/__pkginfo__.py,
       
   129   cubicweb/test/data/cubes/email/views/__init__.py,
       
   130   cubicweb/test/data/cubes/file/entities/__init__.py,
       
   131   cubicweb/test/data/cubes/file/hooks/__init__.py,
       
   132   cubicweb/test/data/cubes/file/__init__.py,
       
   133   cubicweb/test/data/cubes/file/__pkginfo__.py,
       
   134   cubicweb/test/data/cubes/file/views.py,
       
   135   cubicweb/test/data/cubes/forge/__init__.py,
       
   136   cubicweb/test/data/cubes/forge/__pkginfo__.py,
       
   137   cubicweb/test/data/cubes/mycube/__init__.py,
       
   138   cubicweb/test/data/cubes/mycube/__pkginfo__.py,
       
   139   cubicweb/test/data/migration/0.1.0_common.py,
       
   140   cubicweb/test/data/migration/0.1.0_repository.py,
       
   141   cubicweb/test/data_schemareader/schema.py,
       
   142   cubicweb/test/data/server_migration/bootstrapmigration_repository.py,
       
   143   cubicweb/test/data/views.py,
       
   144   cubicweb/test/unittest_binary.py,
       
   145   cubicweb/test/unittest_mail.py,
       
   146   cubicweb/test/unittest_repoapi.py,
       
   147   cubicweb/test/unittest_schema.py,
       
   148   cubicweb/test/unittest_toolsutils.py,
       
   149   cubicweb/web/formwidgets.py,
       
   150   cubicweb/web/test/data/entities.py,
       
   151   cubicweb/web/test/unittest_http_headers.py,
       
   152   cubicweb/web/test/unittest_views_basetemplates.py,
       
   153   cubicweb/web/test/unittest_views_cwsources.py,
       
   154   cubicweb/web/test/unittest_views_json.py,
       
   155   cubicweb/web/views/json.py,
       
   156   cubicweb/web/views/searchrestriction.py,
       
   157   cubicweb/xy.py,