All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] b4: Drop shebang lines from library modules
@ 2026-09-16  6:56 Maxime Ripard
  0 siblings, 0 replies; only message in thread
From: Maxime Ripard @ 2026-09-16  6:56 UTC (permalink / raw)
  To: tools; +Cc: Konstantin Ryabitsev, Maxime Ripard

rpmlint reports non-executable-script errors on several Python modules.
These files are installed as regular library modules with 0644
permissions, so the shebang line is unnecessary and triggers the
diagnostic.

Remove the shebang from all modules.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
 src/b4/_rewrite.py                 | 1 -
 src/b4/bugs/__init__.py            | 1 -
 src/b4/bugs/_import.py             | 1 -
 src/b4/bugs/_tui.py                | 1 -
 src/b4/command.py                  | 1 -
 src/b4/diff.py                     | 1 -
 src/b4/dig.py                      | 1 -
 src/b4/ez.py                       | 1 -
 src/b4/kr.py                       | 1 -
 src/b4/mbox.py                     | 1 -
 src/b4/pr.py                       | 1 -
 src/b4/review/_review.py           | 1 -
 src/b4/review/checks.py            | 1 -
 src/b4/review/messages.py          | 1 -
 src/b4/review/tracking.py          | 1 -
 src/b4/review_tui/_common.py       | 1 -
 src/b4/review_tui/_entry.py        | 1 -
 src/b4/review_tui/_lite_app.py     | 1 -
 src/b4/review_tui/_modals.py       | 1 -
 src/b4/review_tui/_pw_app.py       | 1 -
 src/b4/review_tui/_review_app.py   | 1 -
 src/b4/review_tui/_tracking_app.py | 1 -
 src/b4/tui/_common.py              | 1 -
 src/b4/tui/_modals.py              | 1 -
 src/b4/ty.py                       | 1 -
 25 files changed, 25 deletions(-)

diff --git a/src/b4/_rewrite.py b/src/b4/_rewrite.py
index f3464485cce1..a0c6ab5d79f9 100644
--- a/src/b4/_rewrite.py
+++ b/src/b4/_rewrite.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 """Native history rewriting for b4, backed by pygit2.
diff --git a/src/b4/bugs/__init__.py b/src/b4/bugs/__init__.py
index 0640ea5ad806..57d1b2882e44 100644
--- a/src/b4/bugs/__init__.py
+++ b/src/b4/bugs/__init__.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 """b4 bugs: manage bug reports from mailing list threads."""
 
diff --git a/src/b4/bugs/_import.py b/src/b4/bugs/_import.py
index 9114f70ce94d..1c1ee7e50b60 100644
--- a/src/b4/bugs/_import.py
+++ b/src/b4/bugs/_import.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 """Thread import engine: lore.kernel.org -> git-bug via ezgb."""
 
diff --git a/src/b4/bugs/_tui.py b/src/b4/bugs/_tui.py
index 39afd6e774ea..52c392af28b2 100644
--- a/src/b4/bugs/_tui.py
+++ b/src/b4/bugs/_tui.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 """Textual TUI for b4 bugs."""
 
diff --git a/src/b4/command.py b/src/b4/command.py
index 6c51e28357dc..2d9a5b88d2c7 100644
--- a/src/b4/command.py
+++ b/src/b4/command.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # PYTHON_ARGCOMPLETE_OK
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
diff --git a/src/b4/diff.py b/src/b4/diff.py
index 73920560320f..64f4fece7d4c 100644
--- a/src/b4/diff.py
+++ b/src/b4/diff.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/dig.py b/src/b4/dig.py
index 24e15ff5f974..deaaa684ff6c 100644
--- a/src/b4/dig.py
+++ b/src/b4/dig.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2025 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/ez.py b/src/b4/ez.py
index cf0029ce7bba..a9e833cc9f37 100644
--- a/src/b4/ez.py
+++ b/src/b4/ez.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/kr.py b/src/b4/kr.py
index f89f3024ec27..a2a9e280267e 100644
--- a/src/b4/kr.py
+++ b/src/b4/kr.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020-2021 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/mbox.py b/src/b4/mbox.py
index e3c1df2f29e0..280bd15812cd 100644
--- a/src/b4/mbox.py
+++ b/src/b4/mbox.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/pr.py b/src/b4/pr.py
index 7cf736d026c1..2496a13b74f1 100644
--- a/src/b4/pr.py
+++ b/src/b4/pr.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review/_review.py b/src/b4/review/_review.py
index f2ba5635f7d8..642f4300db2a 100644
--- a/src/b4/review/_review.py
+++ b/src/b4/review/_review.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review/checks.py b/src/b4/review/checks.py
index 5239fcfb7ef6..684045c626df 100644
--- a/src/b4/review/checks.py
+++ b/src/b4/review/checks.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review/messages.py b/src/b4/review/messages.py
index b388d9356747..fe4171cf3fcd 100644
--- a/src/b4/review/messages.py
+++ b/src/b4/review/messages.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review/tracking.py b/src/b4/review/tracking.py
index c913a8c2eed9..ea3822a2372d 100644
--- a/src/b4/review/tracking.py
+++ b/src/b4/review/tracking.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_common.py b/src/b4/review_tui/_common.py
index 4579d42f4b3e..fbdb67d019af 100644
--- a/src/b4/review_tui/_common.py
+++ b/src/b4/review_tui/_common.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_entry.py b/src/b4/review_tui/_entry.py
index 700c5eae0e6a..105fea4721c4 100644
--- a/src/b4/review_tui/_entry.py
+++ b/src/b4/review_tui/_entry.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_lite_app.py b/src/b4/review_tui/_lite_app.py
index 51e143786bd3..96873f1968bd 100644
--- a/src/b4/review_tui/_lite_app.py
+++ b/src/b4/review_tui/_lite_app.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_modals.py b/src/b4/review_tui/_modals.py
index 82471edaa127..80175e7b11da 100644
--- a/src/b4/review_tui/_modals.py
+++ b/src/b4/review_tui/_modals.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_pw_app.py b/src/b4/review_tui/_pw_app.py
index 4a8e5c4af4cd..603e9d285b41 100644
--- a/src/b4/review_tui/_pw_app.py
+++ b/src/b4/review_tui/_pw_app.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_review_app.py b/src/b4/review_tui/_review_app.py
index 866948c5d45c..a28d1bd2a00e 100644
--- a/src/b4/review_tui/_review_app.py
+++ b/src/b4/review_tui/_review_app.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/review_tui/_tracking_app.py b/src/b4/review_tui/_tracking_app.py
index 4c25f8cf1054..e1c1595e8345 100644
--- a/src/b4/review_tui/_tracking_app.py
+++ b/src/b4/review_tui/_tracking_app.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
diff --git a/src/b4/tui/_common.py b/src/b4/tui/_common.py
index 844d9809d026..a37b4a636606 100644
--- a/src/b4/tui/_common.py
+++ b/src/b4/tui/_common.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 """Shared TUI utilities for b4 Textual apps."""
diff --git a/src/b4/tui/_modals.py b/src/b4/tui/_modals.py
index da3ca1390c4b..6fdc986faaf3 100644
--- a/src/b4/tui/_modals.py
+++ b/src/b4/tui/_modals.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2024 by the Linux Foundation
 #
 """Shared modal screens for b4 Textual apps."""
diff --git a/src/b4/ty.py b/src/b4/ty.py
index bbce1499a8d0..2c934f1e6e1b 100644
--- a/src/b4/ty.py
+++ b/src/b4/ty.py
@@ -1,6 +1,5 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2020 by the Linux Foundation
 #
 __author__ = 'Konstantin Ryabitsev <konstantin@linuxfoundation.org>'
-- 
2.55.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-16  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16  6:56 [PATCH] b4: Drop shebang lines from library modules Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.