From e82fbfa79e9a44ff203bd146e6cde53b1ff449e0 Mon Sep 17 00:00:00 2001 From: "Chaozhe.Chen" Date: Fri, 19 Feb 2016 20:26:29 +0800 Subject: [PATCH] Use '#flake8: noqa' to skip file check Better use '#flake8: noqa' to skip file check, rather than writing a file path in tox.ini to exclude it. refer to: https://flake8.readthedocs.org/en/latest/ Change-Id: I2c0cba1bc8f12d868a091b6777e8c06df91435bf --- gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py b/gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py index e84eabbd..ff04411f 100644 --- a/gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py +++ b/gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py @@ -1,4 +1,4 @@ -# +# flake8: noqa # Copyright 2015 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may diff --git a/tox.ini b/tox.ini index f1d9f928..31ed496d 100644 --- a/tox.ini +++ b/tox.ini @@ -60,7 +60,7 @@ deps = {[testenv:docs]deps} commands = {toxinidir}/setup-test-env.sh {posargs} [flake8] -exclude = .tox,.eggs,doc,gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py +exclude = .tox,.eggs,doc show-source = true [testenv:genconfig]