[commit: ghc] master: Use python3 for linters (46a195f)

git at git.haskell.org git at git.haskell.org
Fri Dec 23 22:48:19 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/46a195f4433876f2c6bafeb35a8ec2ed617da396/ghc

>---------------------------------------------------------------

commit 46a195f4433876f2c6bafeb35a8ec2ed617da396
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Fri Dec 23 14:35:55 2016 -0500

    Use python3 for linters
    
    We now require python3 for the testsuite so rather than require two
    versions of python it makes sense to use python3 for the linters as
    well.
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2888


>---------------------------------------------------------------

46a195f4433876f2c6bafeb35a8ec2ed617da396
 .arc-linters/check-binaries.py  | 2 +-
 .arc-linters/check-cpp.py       | 2 +-
 .arc-linters/check-makefiles.py | 2 +-
 .arclint                        | 6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.arc-linters/check-binaries.py b/.arc-linters/check-binaries.py
index 85227ea..017b89b 100755
--- a/.arc-linters/check-binaries.py
+++ b/.arc-linters/check-binaries.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # A linter to warn when binary files are added to the repository
 
diff --git a/.arc-linters/check-cpp.py b/.arc-linters/check-cpp.py
index f9d0552..7abbc31 100755
--- a/.arc-linters/check-cpp.py
+++ b/.arc-linters/check-cpp.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # A linter to warn for ASSERT macros which are separated from their argument
 # list by a space, which Clang's CPP barfs on
diff --git a/.arc-linters/check-makefiles.py b/.arc-linters/check-makefiles.py
index 7080954..4778b2d 100644
--- a/.arc-linters/check-makefiles.py
+++ b/.arc-linters/check-makefiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Warn for use of `--interactive` inside Makefiles (#11468).
 #
diff --git a/.arclint b/.arclint
index 7eaced6..95355e2 100644
--- a/.arclint
+++ b/.arclint
@@ -71,17 +71,17 @@
     },
     "check-binaries": {
       "type": "external-json",
-      "external-json.script": "python .arc-linters/check-binaries.py"
+      "external-json.script": "python3 .arc-linters/check-binaries.py"
     },
     "check-makefiles": {
       "type": "external-json",
       "include": ["(Makefile$)"],
-      "external-json.script": "python .arc-linters/check-makefiles.py"
+      "external-json.script": "python3 .arc-linters/check-makefiles.py"
     },
     "bad-assert-clang-cpp": {
       "type": "external-json",
       "include": ["(\\.(l?hs|x|y\\.pp)(\\.in)?$)", "(\\.(c|h)$)"],
-      "external-json.script": "python .arc-linters/check-cpp.py"
+      "external-json.script": "python3 .arc-linters/check-cpp.py"
     }
   },
 



More information about the ghc-commits mailing list