jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238711?usp=email )
Change subject: Move copyright headers above module docstrings
......................................................................
Move copyright headers above module docstrings
Bug: T416673
Change-Id: I505e47168ca233498ed606c5b4c353f84497d6db
---
M pywikibot/data/api/__init__.py
M pywikibot/data/api/_paraminfo.py
M pywikibot/data/wikistats.py
M pywikibot/echo.py
M pywikibot/scripts/shell.py
M pywikibot/tools/collections.py
M scripts/maintenance/__init__.py
M tests/archivebot_tests.py
M tests/aspects.py
M tests/datasite_tests.py
M tests/deletionbot_tests.py
M tests/file_tests.py
M tests/interwiki_link_tests.py
M tests/link_tests.py
M tests/namespace_tests.py
M tests/protectbot_tests.py
M tests/site_detect_tests.py
M tests/tests_tests.py
M tests/timestripper_tests.py
M tests/tools_deprecate_tests.py
M tests/upload_tests.py
M tests/wikibase_edit_tests.py
22 files changed, 58 insertions(+), 60 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api/__init__.py b/pywikibot/data/api/__init__.py
index bce3a72..74f99a3 100644
--- a/pywikibot/data/api/__init__.py
+++ b/pywikibot/data/api/__init__.py
@@ -1,9 +1,9 @@
-"""Interface to MediaWiki's api.php."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Interface to MediaWiki's api.php."""
from __future__ import annotations
from email.generator import BytesGenerator
diff --git a/pywikibot/data/api/_paraminfo.py b/pywikibot/data/api/_paraminfo.py
index a455b25..87851bc 100644
--- a/pywikibot/data/api/_paraminfo.py
+++ b/pywikibot/data/api/_paraminfo.py
@@ -1,9 +1,9 @@
-"""Object representing API parameter information."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Object representing API parameter information."""
from __future__ import annotations
from collections.abc import Container, Iterable, Sized
diff --git a/pywikibot/data/wikistats.py b/pywikibot/data/wikistats.py
index e3570cf..bb59a97 100644
--- a/pywikibot/data/wikistats.py
+++ b/pywikibot/data/wikistats.py
@@ -1,9 +1,9 @@
-"""Objects representing WikiStats API."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Objects representing WikiStats API."""
from __future__ import annotations
from csv import DictReader
diff --git a/pywikibot/echo.py b/pywikibot/echo.py
index 2dcd683..c39134e 100644
--- a/pywikibot/echo.py
+++ b/pywikibot/echo.py
@@ -1,9 +1,9 @@
-"""Classes and functions for working with the Echo extension."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Classes and functions for working with the Echo extension."""
from __future__ import annotations
from dataclasses import dataclass
diff --git a/pywikibot/scripts/shell.py b/pywikibot/scripts/shell.py
index 487bcab..8a35fcd 100755
--- a/pywikibot/scripts/shell.py
+++ b/pywikibot/scripts/shell.py
@@ -1,4 +1,8 @@
#!/usr/bin/env python3
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Spawns an interactive Python shell and imports the pywikibot library.
To exit the shell, type :kbd:`ctrl-D` (Linux) or :kbd:`ctrl-Z` (Windows)
@@ -16,10 +20,6 @@
.. versionchanged:: 7.0
moved to pywikibot.scripts
"""
-# (C) Pywikibot team, 2014-2025
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import code
diff --git a/pywikibot/tools/collections.py b/pywikibot/tools/collections.py
index 4ea3d87..f061c31 100644
--- a/pywikibot/tools/collections.py
+++ b/pywikibot/tools/collections.py
@@ -1,9 +1,9 @@
-"""Collections datatypes."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Collections datatypes."""
from __future__ import annotations
import collections
diff --git a/scripts/maintenance/__init__.py b/scripts/maintenance/__init__.py
index f6932d9..c67595d 100644
--- a/scripts/maintenance/__init__.py
+++ b/scripts/maintenance/__init__.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Maintenance scripts.
.. versionremoved:: 3.0.20190430
@@ -13,10 +18,3 @@
``wikimedia_sites`` script was removed (:phab:`T78396`).
"""
from __future__ import annotations
-
-
-#
-# (C) Pywikibot team, 2014-2025
-#
-# Distributed under the terms of the MIT license.
-#
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index 7b78a3d..7680ec6 100755
--- a/tests/archivebot_tests.py
+++ b/tests/archivebot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for archivebot scripts."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for archivebot scripts."""
from __future__ import annotations
import unittest
diff --git a/tests/aspects.py b/tests/aspects.py
index 6c8144e..e422af2 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1,13 +1,13 @@
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Test aspects to allow fine grained control over what tests are executed.
Several parts of the test infrastructure are implemented as mixins, such
as API result caching and excessive test durations.
"""
-#
-# (C) Pywikibot team, 2014-2025
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import inspect
diff --git a/tests/datasite_tests.py b/tests/datasite_tests.py
index 77272ed..681c7e2 100755
--- a/tests/datasite_tests.py
+++ b/tests/datasite_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the site module."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the site module."""
from __future__ import annotations
import unittest
diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py
index f44ece5..30dbfa3 100755
--- a/tests/deletionbot_tests.py
+++ b/tests/deletionbot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for scripts/delete.py."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for scripts/delete.py."""
from __future__ import annotations
import unittest
diff --git a/tests/file_tests.py b/tests/file_tests.py
index ad3655b..2ae94c8 100755
--- a/tests/file_tests.py
+++ b/tests/file_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""FilePage tests."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""FilePage tests."""
from __future__ import annotations
import os
diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py
index 92c09dc..47173e3 100755
--- a/tests/interwiki_link_tests.py
+++ b/tests/interwiki_link_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test Interwiki Link functionality."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test Interwiki Link functionality."""
from __future__ import annotations
import unittest
diff --git a/tests/link_tests.py b/tests/link_tests.py
index 960deed..a042325 100755
--- a/tests/link_tests.py
+++ b/tests/link_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test Link functionality."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test Link functionality."""
from __future__ import annotations
import re
diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py
index 9063fc9..28e1d3b 100755
--- a/tests/namespace_tests.py
+++ b/tests/namespace_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the Namespace class."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the Namespace class."""
from __future__ import annotations
import unittest
diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py
index 7279aa5..ba7af83 100755
--- a/tests/protectbot_tests.py
+++ b/tests/protectbot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for scripts/protect.py."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for scripts/protect.py."""
from __future__ import annotations
import unittest
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
index c0cde71..d6285d0 100755
--- a/tests/site_detect_tests.py
+++ b/tests/site_detect_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test for site detection."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test for site detection."""
from __future__ import annotations
import os
diff --git a/tests/tests_tests.py b/tests/tests_tests.py
index fa6ab1e..c792006 100755
--- a/tests/tests_tests.py
+++ b/tests/tests_tests.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
-"""Tests for the tests package."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
+"""Tests for the tests package."""
from __future__ import annotations
import unittest
diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py
index 157b78b..3cf636f 100755
--- a/tests/timestripper_tests.py
+++ b/tests/timestripper_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for archivebot.py/Timestripper."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for archivebot.py/Timestripper."""
from __future__ import annotations
import datetime
diff --git a/tests/tools_deprecate_tests.py b/tests/tools_deprecate_tests.py
index 776a51d..55c1202 100755
--- a/tests/tools_deprecate_tests.py
+++ b/tests/tools_deprecate_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for deprecation tools."""
#
-# (C) Pywikibot team, 2014-2025
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for deprecation tools."""
from __future__ import annotations
import unittest
diff --git a/tests/upload_tests.py b/tests/upload_tests.py
index 96e8043..31d27be 100755
--- a/tests/upload_tests.py
+++ b/tests/upload_tests.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Site upload test.
These tests write to the wiki.
"""
-#
-# (C) Pywikibot team, 2014-2025
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import unittest
diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py
index 2e62130..c82a15b 100755
--- a/tests/wikibase_edit_tests.py
+++ b/tests/wikibase_edit_tests.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Tests for editing Wikibase items.
Tests which should fail should instead be in the TestWikibaseSaveTest
class in edit_failure_tests.py
"""
-#
-# (C) Pywikibot team, 2014-2025
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import time
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238711?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: I505e47168ca233498ed606c5b4c353f84497d6db
Gerrit-Change-Number: 1238711
Gerrit-PatchSet: 3
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]