Skip to content

Commit cd8311f

Browse files
Date headers by content other than import statements
Import lines copied from unrelated older files made several headers claim years that none of the file's actual content has. Ignore Python import statements when finding the earliest surviving content, and state the rule and the PR template exception in the contribution guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e8cd123 commit cd8311f

15 files changed

Lines changed: 17 additions & 15 deletions

File tree

‎benchmarks/pyathena_bench/adapters.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 The PyAthena authors
1+
# Copyright 2026 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎docs/contributing.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,7 @@ Identify any third-party material included in a new contribution and preserve it
132132
Do not replace upstream notices with the original-file template above.
133133

134134
This policy does not require adding headers to existing files or changing existing notices, including the root `LICENSE`.
135-
Existing files written solely by the maintainer carry the header above, dated with the year of their earliest surviving content; other existing files keep their current notices.
135+
Existing non-empty files that contain only the maintainer's original work carry the header above, dated with the year of their earliest surviving content other than import statements.
136+
The pull request template is an exception because its content is copied into each pull request.
137+
Other existing files keep their current notices.
136138
[NOTICE](https://github.com/pyathena-dev/PyAthena/blob/master/NOTICE) acknowledges PyHive's influence on PyAthena.

‎pyathena/aio/sqlalchemy/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The PyAthena authors
1+
# Copyright 2026 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎pyathena/aio/util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The PyAthena authors
1+
# Copyright 2025 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎pyathena/filesystem/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The PyAthena authors
1+
# Copyright 2026 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎pyathena/spark/cursor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 The PyAthena authors
1+
# Copyright 2024 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎pyathena/sqlalchemy/map.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The PyAthena authors
1+
# Copyright 2025 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎pyathena/sqlalchemy/struct.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The PyAthena authors
1+
# Copyright 2025 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎scripts/sweep_databases.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 The PyAthena authors
1+
# Copyright 2026 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

‎scripts/tests/test_sweep_databases.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 The PyAthena authors
1+
# Copyright 2026 The PyAthena authors
22
#
33
# Licensed under the MIT License.
44
# See LICENSE or https://opensource.org/licenses/MIT.

0 commit comments

Comments
 (0)