Skip to content

Commit 2e19e2a

Browse files
committed
Test on python 3.12
1 parent 2ba827b commit 2e19e2a

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
- "3.9"
1313
- "3.10"
1414
- "3.11"
15+
- "3.12"
1516
steps:
1617
- name: Checkout repository
1718
uses: actions/checkout@v3

govuk_bank_holidays/bank_holidays.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class BankHolidays:
1919
Methods of this class will default to only considering bank holidays common to *all* divisions
2020
unless a specific division is provided.
2121
"""
22+
2223
source_url = 'https://www.gov.uk/bank-holidays.json'
2324

2425
# division constants
@@ -110,7 +111,7 @@ def get_holidays(self, division=None, year=None):
110111
(
111112
set(map(lambda holiday: holiday['date'], division_holidays))
112113
for division, division_holidays in self.data.items()
113-
)
114+
),
114115
)
115116
holidays = filter(lambda holiday: holiday['date'] in dates_in_common, holidays)
116117
if year:

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers =
2424
Programming Language :: Python :: 3.9
2525
Programming Language :: Python :: 3.10
2626
Programming Language :: Python :: 3.11
27+
Programming Language :: Python :: 3.12
2728
Topic :: Software Development :: Libraries :: Python Modules
2829

2930
[options]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py37,py38,py39,py310,py311
3+
py37,py38,py39,py310,py311,py312
44
lint
55

66
[testenv]

0 commit comments

Comments
 (0)