File: 0001-Skip-running-code-linters.patch

package info (click to toggle)
icdiff 2.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 616 kB
  • sloc: python: 756; sh: 190; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Thu, 30 Jan 2025 10:13:13 +0100
Subject: Skip running code linters

Forwarded: not-needed

Not needed for package-level testing, and will cause unnecessary test
failures when there are newer versions of black and flake8.
---
 test.sh | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/test.sh b/test.sh
index 1dd6c4b..dc9ecab 100755
--- a/test.sh
+++ b/test.sh
@@ -210,20 +210,6 @@ function ensure_installed() {
   fi
 }
 
-ensure_installed "black"
-echo 'Running black formatter...'
-if ! black icdiff --quiet --line-length 79 --check; then
-  echo ""
-  echo 'Consider running `black icdiff --line-length 79`'
-  fail
-fi
-
-ensure_installed "flake8"
-echo 'Running flake8 linter...'
-if ! flake8 icdiff; then
-  fail
-fi
-
 if ! $REGOLD; then
   echo PASS
 fi