]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: extract flake8 config 24674/head
authorMehdi Abaakouk <sileht@sileht.net>
Fri, 19 Oct 2018 10:02:48 +0000 (12:02 +0200)
committerMehdi Abaakouk <sileht@sileht.net>
Fri, 19 Oct 2018 11:18:47 +0000 (13:18 +0200)
It's preferable to use [flake8] section to configure flake8.

So external tools/editor can read the configuration.

Signed-off-by: Mehdi Abaakouk <sileht@sileht.net>
src/ceph-volume/tox.ini

index 514d208facf3cfdffb5cc84a40e30da1487ffff3..06a6388482827bce009b44bf75a86273d8959a33 100644 (file)
@@ -8,7 +8,10 @@ commands=py.test -v {posargs:ceph_volume/tests}
 
 [testenv:flake8]
 deps=flake8
-commands=flake8 --select=F,E9 {posargs:ceph_volume}
+commands=flake8 {posargs:ceph_volume}
 
 [tool:pytest]
 norecursedirs = .* _* virtualenv
+
+[flake8]
+select=F,E9