jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238771?usp=email )

Change subject: Move copyright headers above module docstrings
......................................................................

Move copyright headers above module docstrings

Bug: T416673
Change-Id: I2113a2a4afcbeb2796f3db6b888e0021680ad4fc
---
M conftest.py
M pywikibot/site/_obsoletesites.py
M pywikibot/specialbots/__init__.py
M pywikibot/userinterfaces/_interface_base.py
M tests/echo_tests.py
M tests/hooks/__init__.py
M tests/hooks/copyright_fixer.py
M tests/linter_tests.py
M tests/mysql_tests.py
M tests/pwb/print_argv.py
M tests/pwb/print_unicode.py
M tests/uploadscript_tests.py
M tests/version_tests.py
M tests/weblinkchecker_tests.py
M tests/wikiwho_tests.py
15 files changed, 45 insertions(+), 30 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/conftest.py b/conftest.py
index 39cc385..8824c61 100644
--- a/conftest.py
+++ b/conftest.py
@@ -1,12 +1,13 @@
-"""Configuration file for pytest.
-
-.. versionadded:: 10.3
-"""
 #
 # (C) Pywikibot team, 2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Configuration file for pytest.
+
+.. versionadded:: 10.3
+"""
+
 from __future__ import annotations

 import re
diff --git a/pywikibot/site/_obsoletesites.py b/pywikibot/site/_obsoletesites.py
index bc99cc4..d095484 100644
--- a/pywikibot/site/_obsoletesites.py
+++ b/pywikibot/site/_obsoletesites.py
@@ -1,9 +1,10 @@
-"""Objects representing obsolete MediaWiki sites."""
 #
 # (C) Pywikibot team, 2019-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Objects representing obsolete MediaWiki sites."""
+
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/specialbots/__init__.py 
b/pywikibot/specialbots/__init__.py
index 4927604..0b47077 100644
--- a/pywikibot/specialbots/__init__.py
+++ b/pywikibot/specialbots/__init__.py
@@ -1,9 +1,10 @@
-"""Module containing special bots reusable by scripts."""
 #
 # (C) Pywikibot team, 2020-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Module containing special bots reusable by scripts."""
+
 from __future__ import annotations

 from pywikibot.specialbots._unlink import BaseUnlinkBot, InteractiveUnlink
diff --git a/pywikibot/userinterfaces/_interface_base.py 
b/pywikibot/userinterfaces/_interface_base.py
index d754eeb..bd49d3b 100644
--- a/pywikibot/userinterfaces/_interface_base.py
+++ b/pywikibot/userinterfaces/_interface_base.py
@@ -1,12 +1,13 @@
-"""Abstract base user interface module.
-
-.. versionadded:: 6.2
-"""
 #
 # (C) Pywikibot team, 2021
 #
 # Distributed under the terms of the MIT license.
 #
+"""Abstract base user interface module.
+
+.. versionadded:: 6.2
+"""
+
 from __future__ import annotations

 import sys
diff --git a/tests/echo_tests.py b/tests/echo_tests.py
index b6b8cd1..b95629e 100755
--- a/tests/echo_tests.py
+++ b/tests/echo_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Test echo module."""
 #
 # (C) Pywikibot team, 2019-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test echo module."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/hooks/__init__.py b/tests/hooks/__init__.py
index b9e3b06..5c00c7f 100644
--- a/tests/hooks/__init__.py
+++ b/tests/hooks/__init__.py
@@ -1,10 +1,11 @@
-"""Local pre-commit hooks for CI tests.
-
-.. versionadded:: 10.3
-"""
 #
 # (C) Pywikibot team, 2025
 #
 # Distributed under the terms of the MIT license.
 #
+"""Local pre-commit hooks for CI tests.
+
+.. versionadded:: 10.3
+"""
+
 from __future__ import annotations
diff --git a/tests/hooks/copyright_fixer.py b/tests/hooks/copyright_fixer.py
index d3fa734..5ef5a69 100755
--- a/tests/hooks/copyright_fixer.py
+++ b/tests/hooks/copyright_fixer.py
@@ -1,13 +1,14 @@
 #!/usr/bin/env python
-"""Pre-commit hook to set the leftmost copyright year.
-
-.. versionadded:: 10.3
-"""
 #
 # (C) Pywikibot team, 2025
 #
 # Distributed under the terms of the MIT license.
 #
+"""Pre-commit hook to set the leftmost copyright year.
+
+.. versionadded:: 10.3
+"""
+
 from __future__ import annotations

 import re
diff --git a/tests/linter_tests.py b/tests/linter_tests.py
index b5aa651..74b0be3 100755
--- a/tests/linter_tests.py
+++ b/tests/linter_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for the site module."""
 #
 # (C) Pywikibot team, 2018-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the site module."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/mysql_tests.py b/tests/mysql_tests.py
index 1f8ff03..61e0306 100755
--- a/tests/mysql_tests.py
+++ b/tests/mysql_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for mysql module."""
 #
 # (C) Pywikibot team, 2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for mysql module."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/pwb/print_argv.py b/tests/pwb/print_argv.py
index fd08973..108642a 100755
--- a/tests/pwb/print_argv.py
+++ b/tests/pwb/print_argv.py
@@ -1,13 +1,14 @@
 #!/usr/bin/env python3
-"""Script that forms part of pwb_tests.
-
-.. versionadded:: 7.0
-"""
 #
 # (C) Pywikibot team, 2021
 #
 # Distributed under the terms of the MIT license.
 #
+"""Script that forms part of pwb_tests.
+
+.. versionadded:: 7.0
+"""
+
 from __future__ import annotations

 import pywikibot
diff --git a/tests/pwb/print_unicode.py b/tests/pwb/print_unicode.py
index e54fdd5..370c155 100755
--- a/tests/pwb/print_unicode.py
+++ b/tests/pwb/print_unicode.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Script that forms part of pwb_tests."""
 #
 # (C) Pywikibot team, 2018-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""Script that forms part of pwb_tests."""
+
 from __future__ import annotations

 import pywikibot
diff --git a/tests/uploadscript_tests.py b/tests/uploadscript_tests.py
index 62c125a..a732ff9 100755
--- a/tests/uploadscript_tests.py
+++ b/tests/uploadscript_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""upload.py script test."""
 #
 # (C) Pywikibot team, 2019-2022
 #
 # Distributed under the terms of the MIT license.
 #
+"""upload.py script test."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/version_tests.py b/tests/version_tests.py
index 2bbc531..7d7645d 100755
--- a/tests/version_tests.py
+++ b/tests/version_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Test cases for the :mod:`version` module."""
 #
 # (C) Pywikibot team, 2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test cases for the :mod:`version` module."""
+
 from __future__ import annotations

 import time
diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py
index db854a0..91a54bf 100755
--- a/tests/weblinkchecker_tests.py
+++ b/tests/weblinkchecker_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for the weblinkchecker script."""
 #
 # (C) Pywikibot team, 2025
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the weblinkchecker script."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/wikiwho_tests.py b/tests/wikiwho_tests.py
index 54a898b..d685964 100644
--- a/tests/wikiwho_tests.py
+++ b/tests/wikiwho_tests.py
@@ -1,9 +1,10 @@
-"""Tests for WikiWhoMixin pickle subdirectory structure."""
 #
 # (C) Pywikibot team, 2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for WikiWhoMixin pickle subdirectory structure."""
+
 from __future__ import annotations

 import unittest

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238771?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2113a2a4afcbeb2796f3db6b888e0021680ad4fc
Gerrit-Change-Number: 1238771
Gerrit-PatchSet: 2
Gerrit-Owner: Stitipragyan barik <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to