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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: I1e4beb1d4a2536ab14b1846515e46b71a1631382
---
M pywikibot/page/_decorators.py
M pywikibot/site/__init__.py
M pywikibot/site/_interwikimap.py
M pywikibot/tools/formatter.py
M scripts/commons_information.py
M scripts/download_dump.py
M scripts/interwikidata.py
M scripts/maintenance/colors.py
M scripts/maintenance/unidata.py
M scripts/transwikiimport.py
M tests/djvu_tests.py
M tests/make_dist_tests.py
M tests/replacebot_tests.py
M tests/site_login_logout_tests.py
M tests/sparql_tests.py
M tests/thanks_tests.py
M tests/tools_formatter_tests.py
17 files changed, 57 insertions(+), 40 deletions(-)

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




diff --git a/pywikibot/page/_decorators.py b/pywikibot/page/_decorators.py
index 6997d52..61d31ea 100644
--- a/pywikibot/page/_decorators.py
+++ b/pywikibot/page/_decorators.py
@@ -1,9 +1,10 @@
-"""Decorators for Page objects."""
 #
 # (C) Pywikibot team, 2017-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Decorators for Page objects."""
+
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index 9cfcbf4..8a7aa7d 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -1,9 +1,10 @@
-"""Library module representing MediaWiki sites (wikis)."""
 #
 # (C) Pywikibot team, 2021-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Library module representing MediaWiki sites (wikis)."""
+
 from __future__ import annotations


diff --git a/pywikibot/site/_interwikimap.py b/pywikibot/site/_interwikimap.py
index f62accf..2cc8f3b 100644
--- a/pywikibot/site/_interwikimap.py
+++ b/pywikibot/site/_interwikimap.py
@@ -1,9 +1,10 @@
-"""Objects representing interwiki map of MediaWiki site."""
 #
 # (C) Pywikibot team, 2015-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Objects representing interwiki map of MediaWiki site."""
+
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/tools/formatter.py b/pywikibot/tools/formatter.py
index d2e8fdc..2ace794 100644
--- a/pywikibot/tools/formatter.py
+++ b/pywikibot/tools/formatter.py
@@ -1,9 +1,10 @@
-"""Module containing various formatting related utilities."""
 #
 # (C) Pywikibot team, 2015-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Module containing various formatting related utilities."""
+
 from __future__ import annotations

 import math
diff --git a/scripts/commons_information.py b/scripts/commons_information.py
index 67bdca9..a9a429c 100755
--- a/scripts/commons_information.py
+++ b/scripts/commons_information.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2015-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot adds a language template to the file's description field.

 The ``Information`` template is commonly used to provide formatting to
@@ -58,11 +63,7 @@
    accelerate script with preloading pages; use ``commons`` as default
    site; use transcluded pages of ``Information`` template.
 """
-#
-# (C) Pywikibot team, 2015-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 from textwrap import fill
diff --git a/scripts/download_dump.py b/scripts/download_dump.py
index 6436b93..10199d9 100755
--- a/scripts/download_dump.py
+++ b/scripts/download_dump.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2017-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot downloads dump from dumps.wikimedia.org.

 This script supports the following command line parameters:
@@ -15,11 +20,7 @@
    within a settings file which is scripts.ini by default.
 .. versionadded:: 3.0.20180108
 """
-#
-# (C) Pywikibot team, 2017-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import binascii
diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py
index 97da3df..2805fa9 100755
--- a/scripts/interwikidata.py
+++ b/scripts/interwikidata.py
@@ -1,4 +1,8 @@
 #!/usr/bin/env python3
+# (C) Pywikibot team, 2015-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to handle interwiki links based on Wikibase.

 This script connects pages to Wikibase items using language links on the
@@ -30,10 +34,7 @@
    default.
 """

-# (C) Pywikibot team, 2015-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import pywikibot
diff --git a/scripts/maintenance/colors.py b/scripts/maintenance/colors.py
index f2d0c86..b6da213 100755
--- a/scripts/maintenance/colors.py
+++ b/scripts/maintenance/colors.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Utility to show pywikibot colors."""
 #
 # (C) Pywikibot team, 2016-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Utility to show pywikibot colors."""
+
 from __future__ import annotations

 import pywikibot
diff --git a/scripts/maintenance/unidata.py b/scripts/maintenance/unidata.py
index 096a600..af401e2 100755
--- a/scripts/maintenance/unidata.py
+++ b/scripts/maintenance/unidata.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2018-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to update :mod:`pywikibot.tools._unidata`.

 This script is for updating ``_first_upper_exception_dict``.
@@ -9,11 +14,7 @@

 .. versionadded:: 8.4
 """
-#
-# (C) Pywikibot team, 2018-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 from json import dump, load
diff --git a/scripts/transwikiimport.py b/scripts/transwikiimport.py
index d3932ef..2f5cb43 100755
--- a/scripts/transwikiimport.py
+++ b/scripts/transwikiimport.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2023-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """This script transfers pages from a source wiki to a target wiki.

 It uses :api:`Import` and it is also able to copy the full edit history.
@@ -137,11 +142,7 @@

 .. versionadded:: 8.2
 """
-#
-# (C) Pywikibot team, 2023-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import pywikibot
diff --git a/tests/djvu_tests.py b/tests/djvu_tests.py
index f534d0b..04b6821 100755
--- a/tests/djvu_tests.py
+++ b/tests/djvu_tests.py
@@ -1,11 +1,12 @@
 #!/usr/bin/env python3
-"""Unit tests for tools.djvu.py."""

 #
 # (C) Pywikibot team, 2015-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Unit tests for tools.djvu.py."""
+
 from __future__ import annotations

 import os
diff --git a/tests/make_dist_tests.py b/tests/make_dist_tests.py
index 0e8085f..4463035 100755
--- a/tests/make_dist_tests.py
+++ b/tests/make_dist_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for fixes module."""
 #
 # (C) Pywikibot team, 2022-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for fixes module."""
+
 from __future__ import annotations

 import sys
diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py
index 069f32c..6f86c3a 100755
--- a/tests/replacebot_tests.py
+++ b/tests/replacebot_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for the replace script and ReplaceRobot class."""
 #
 # (C) Pywikibot team, 2015-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the replace script and ReplaceRobot class."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/site_login_logout_tests.py b/tests/site_login_logout_tests.py
index a5b41e6..c44f782 100755
--- a/tests/site_login_logout_tests.py
+++ b/tests/site_login_logout_tests.py
@@ -1,15 +1,16 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2022-2024
+#
+# Distributed under the terms of the MIT license.
+#
 """Test for login and logout methods.

 These tests are separated from others because they should not be run in
 paralled CI test tasks. Any logout could lead other parallel tests to
 fail.
 """
-#
-# (C) Pywikibot team, 2022-2024
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations
 
 import os
diff --git a/tests/sparql_tests.py b/tests/sparql_tests.py
index ead31de..3bdbba6 100755
--- a/tests/sparql_tests.py
+++ b/tests/sparql_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Test cases for the SPARQL API."""
 #
 # (C) Pywikibot team, 2016-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test cases for the SPARQL API."""
+
 from __future__ import annotations

 import json
diff --git a/tests/thanks_tests.py b/tests/thanks_tests.py
index b34a218..7f12788 100755
--- a/tests/thanks_tests.py
+++ b/tests/thanks_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for thanks-related code."""
 #
 # (C) Pywikibot team, 2016-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for thanks-related code."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py
index 957f70a..415afbb 100755
--- a/tests/tools_formatter_tests.py
+++ b/tests/tools_formatter_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for the ``pywikibot.tools.formatter`` module."""
 #
 # (C) Pywikibot team, 2015-2024
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the ``pywikibot.tools.formatter`` module."""
+
 from __future__ import annotations

 import unittest

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238730?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: I1e4beb1d4a2536ab14b1846515e46b71a1631382
Gerrit-Change-Number: 1238730
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