From af646b2cc548706889e46aab8513c485cec5350d Mon Sep 17 00:00:00 2001
From: thomahl <thomahl@stud.ntnu.no>
Date: Fri, 28 Feb 2020 09:16:04 +0100
Subject: [PATCH] Fikset maks tegn per linje til 79
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Var satt til 100 før
---
 scripts/.pylintrc      |  2 +-
 soitool/main_window.py | 11 ++++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/scripts/.pylintrc b/scripts/.pylintrc
index 43b2b9b..a4c463b 100644
--- a/scripts/.pylintrc
+++ b/scripts/.pylintrc
@@ -285,7 +285,7 @@ indent-after-paren=4
 indent-string='    '
 
 # Maximum number of characters on a single line.
-max-line-length=100
+max-line-length=79
 
 # Maximum number of lines in a module.
 max-module-lines=1000
diff --git a/soitool/main_window.py b/soitool/main_window.py
index 4819cba..fe50fd8 100644
--- a/soitool/main_window.py
+++ b/soitool/main_window.py
@@ -141,8 +141,12 @@ class ViewArea(QWidget):
         self.scene = QGraphicsScene()
         self.scene.setSceneRect(QRectF(0, 0, self.WIDTH, self.HEIGHT))
         self.scene.addRect(0, 0, self.WIDTH, self.HEIGHT)
-        self.scene.addRect(self.PADDING, self.PADDING, self.CONTENT_WIDTH, self.CONTENT_HEIGHT)
-        self.scene.addRect(self.PADDING, self.PADDING, self.CONTENT_WIDTH, self.HEADER_HEIGHT)
+        self.scene.addRect(self.PADDING, self.PADDING, self.CONTENT_WIDTH,
+                           self.CONTENT_HEIGHT)
+        self.scene.addRect(self.PADDING, self.PADDING, self.CONTENT_WIDTH,
+                           self.CONTENT_HEIGHT)
+        self.scene.addRect(self.PADDING, self.PADDING, self.CONTENT_WIDTH,
+                           self.HEADER_HEIGHT)
 
         self.view = QGraphicsView(self.scene)
         self.view.scale(0.50, 0.50)
@@ -155,7 +159,8 @@ class ViewArea(QWidget):
     def launch_auto_zoom(self):
         """Zoom in a regular interval.
 
-        Used to demonstrate zooming only, should be removed once the project matures.
+        Used to demonstrate zooming only, should be removed once the project
+        matures.
         """
         def do_on_timeout():
             self.zoom(1 / 1.00005)
-- 
GitLab