From a1ec68ef8e1420e832f01e2475405d4e6d9f3a1b Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Wed, 4 Apr 2012 18:35:17 +0200 Subject: [PATCH] Pylint and interpolation refactoring --- .pylintrc | 4 +- demo/moulinrouge/__init__.py | 4 +- pygal/config.py | 1 - pygal/graph/__init__.py | 4 ++ pygal/graph/bar.py | 26 +++++++---- pygal/graph/base.py | 88 ++++++++---------------------------- pygal/graph/graph.py | 76 ++++++++++++++++++++++--------- pygal/graph/horizontal.py | 9 +++- pygal/graph/line.py | 31 +++++++------ pygal/graph/pie.py | 24 ++++++---- pygal/graph/radar.py | 58 +++++++++++++----------- pygal/graph/stackedbar.py | 18 +++++--- pygal/graph/stackedline.py | 25 +++++----- pygal/graph/xy.py | 34 +++++++------- pygal/svg.py | 4 +- pygal/util.py | 70 +++++++++++++++++++++++++++- pygal/view.py | 6 +-- 17 files changed, 286 insertions(+), 196 deletions(-) diff --git a/.pylintrc b/.pylintrc index 242f3c7d..01e94284 100644 --- a/.pylintrc +++ b/.pylintrc @@ -133,7 +133,7 @@ module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$ # Regular expression which should only match correct class names -class-rgx=[a-zA-Z_][a-zA-Z0-9]+$ +class-rgx=[a-zA-Z_][a-zA-Z0-9_]+$ # Regular expression which should only match correct function names function-rgx=[a-z_][a-z0-9_]{2,30}$ @@ -200,7 +200,7 @@ max-args=20 ignored-argument-names=_.* # Maximum number of locals for function / method body -max-locals=15 +max-locals=30 # Maximum number of return / yield for function / method body max-returns=6 diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py index 3e4a8e33..e6b1e39f 100644 --- a/demo/moulinrouge/__init__.py +++ b/demo/moulinrouge/__init__.py @@ -103,7 +103,8 @@ def svg(type, series, config): @app.route("/all") @app.route("/all/style=