Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file header pre-commit check #1744

Merged
merged 2 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ repos:
- id: ruff
- id: ruff-format

- repo: https://github.com/lucas-c/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: \.(po|py)$
args:
- --license-filepath
- docs/file_header.txt

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand Down
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Python Holidays Authors

Aaron Picht
Aart Goossens
Abdelkhalek Boukli Hacene
Akos Furton
Alejandro Antunes
Alexander Schulze
Expand Down Expand Up @@ -95,6 +96,7 @@ Ondřej Nový
Osayd Abdu
Oscar Romero
Pablo Merino
Panpakorn Siripanich
Patrick Nicholson
Paulo Orrock
Pavel Sofroniev
Expand All @@ -114,6 +116,7 @@ Sam Tregar
Santiago Feliu
Sergi Almacellas Abellana
Sergio Mayoral Martinez
Serhii Murza
Shaurya Uppal
Sho Hirose
Simon Gurcke
Expand Down
11 changes: 11 additions & 0 deletions docs/file_header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
holidays
--------
A fast, efficient Python library for generating country, province and state
specific sets of holidays on the fly. It aims to make determining whether a
specific date is a holiday as fast and flexible as possible.

Authors: Vacanza Team and individual contributors (see AUTHORS file)
dr-prodigy <[email protected]> (c) 2017-2023
ryanss <[email protected]> (c) 2014-2017
Website: https://github.com/vacanza/python-holidays
License: MIT (see LICENSE file)
12 changes: 12 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down
1 change: 0 additions & 1 deletion holidays/countries/egypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)


from gettext import gettext as tr

from holidays.calendars.julian import JULIAN_CALENDAR
Expand Down
1 change: 0 additions & 1 deletion holidays/countries/peru.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)


from gettext import gettext as tr

from holidays.groups import ChristianHolidays, InternationalHolidays
Expand Down
1 change: 0 additions & 1 deletion holidays/countries/philippines.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)


from holidays.groups import (
ChineseCalendarHolidays,
ChristianHolidays,
Expand Down
1 change: 0 additions & 1 deletion holidays/countries/tunisia.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)


from gettext import gettext as tr

from holidays.groups import InternationalHolidays, IslamicHolidays
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/am/LC_MESSAGES/ET.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Ethiopia holidays.
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/AE.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# United Arab Emirates holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/BH.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Bahrain holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/CA.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Canada holidays ar localization (PoC).
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
14 changes: 13 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/DJ.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Djibouti holidays ar localization.
# Authors: ~Jhellico <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.42\n"
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/DZ.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Algeria holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/EG.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Egypt holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/ET.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Ethiopia holidays ar localization.
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/KW.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Kuwait holidays.
# Authors: Jaemin Kim <[email protected]>, (c) 2024.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/MA.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Morocco holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/SA.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Saudi Arabia holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/TN.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Tunisia holidays.
# Authors: Abdelkhalek Boukli Hacene <[email protected]>, 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/ar/LC_MESSAGES/UA.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Ukraine holidays ar localization.
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/az/LC_MESSAGES/AZ.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Azerbaijan holidays.
# Authors: ~Jhellico <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/be/LC_MESSAGES/BY.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Belarus holidays.
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
13 changes: 12 additions & 1 deletion holidays/locale/bg/LC_MESSAGES/BG.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# holidays
# --------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
# dr-prodigy <[email protected]> (c) 2017-2023
# ryanss <[email protected]> (c) 2014-2017
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)
#
# Bulgaria holidays.
# Authors: Arkadii Yakovets <[email protected]>, (c) 2023.
#
msgid ""
msgstr ""
Expand Down
Loading