Skip to content

Commit

Permalink
Version 20210525
Browse files Browse the repository at this point in the history
  • Loading branch information
mborsetti committed May 25, 2021
1 parent 2486d9e commit 8e1b1b0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# A list of repository mappings.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.0.1
hooks:
# see https://github.com/pre-commit/pre-commit-hooks
# - id: check-added-large-files
Expand Down Expand Up @@ -117,7 +117,7 @@ repos:
# language_version: python3

- repo: https://github.com/pycqa/flake8
rev: 3.9.1
rev: 3.9.2
hooks:
- id: flake8
name: Check for errors, style, and over-complexity (flake8)
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on the UTC date of the release.
`Contributions <https://github.com/mborsetti/airportdata/blob/master/CHANGELOG.rst>`__ always welcomed!


Version 20210525
================
* Added ``iata`` entry for PGUA/Andersen Air Force Base

Version 20210425
================
* Multiple additions and fixes contributed by `Edward Weymouth <https://github.com/ed42311>`__ in `#1
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ airportsdata

.. |ICAO| replace:: 28,864

.. |IATA| replace:: 6,558
.. |IATA| replace:: 6,559

.. |version| image:: https://img.shields.io/pypi/v/airportsdata.svg
:target: https://pypi.org/project/airportsdata/
Expand Down
3 changes: 3 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version 20210525
================
* Added ``iata`` entry for PGUA/Andersen Air Force Base
2 changes: 1 addition & 1 deletion airportsdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

__project_name__ = __package__
# Release numbering follows the release data
__version__ = '20210425'
__version__ = '20210525'
__min_python_version__ = (3, 6)
__author__ = 'Mike Borsetti <mike@borsetti.com>'
__copyright__ = 'Copyright 2020- Mike Borsetti'
Expand Down
2 changes: 1 addition & 1 deletion airportsdata/airports.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19494,7 +19494,7 @@
"PFYU","FYU","Fort Yukon Airport","Fort Yukon","Alaska","US",433.0,66.5715026855,-145.25,"America/Anchorage"
"PGRO","ROP","Rota International Airport","Rota Island","Rota","MP",607.0,14.1743001938,145.2429962158,"Pacific/Saipan"
"PGSN","SPN","Francisco C. Ada Saipan International Airport","Saipan Island","Saipan","MP",215.0,15.1190004349,145.7290039063,"Pacific/Saipan"
"PGUA","","Andersen Air Force Base","Andersen","Yigo","GU",627.0,13.5839996338,144.9299926758,"Pacific/Guam"
"PGUA","UAM","Andersen Air Force Base","Andersen","Yigo","GU",627.0,13.5839996338,144.9299926758,"Pacific/Guam"
"PGUM","GUM","Antonio B. Won Pat International Airport","Hagatna","Barrigada","GU",298.0,13.4834003448,144.796005249,"Pacific/Guam"
"PGWT","TIQ","Tinian International Airport","Tinian Island","Tinian","MP",271.0,14.9991998672,145.6190032959,"Pacific/Saipan"
"PHBK","BKH","Barking Sands Airport","Kekaha","Hawaii","US",23.0,22.0228004456,-159.785003662,"Pacific/Honolulu"
Expand Down
11 changes: 5 additions & 6 deletions tests/airportsdata_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Tests"""
"""Tests."""
import sys
import warnings

Expand All @@ -11,7 +11,7 @@
except ImportError:
from backports.zoneinfo import ZoneInfo

py39_only = pytest.mark.skipif(sys.version_info < (3, 7), reason='Only checking data integrity once with latest Python')
py39_only = pytest.mark.skipif(sys.version_info < (3, 9), reason='Only checking data integrity once with latest Python')


airports = airportsdata.load()
Expand All @@ -31,9 +31,9 @@
'ES', 'LK', 'SD', 'SR', 'SJ', 'SE', 'CH', 'SY', 'TW', 'TJ', 'TZ', 'TH', 'TL', 'TG', 'TK', 'TO', 'TT', 'TN', 'TR',
'TM', 'TC', 'TV', 'UG', 'UA', 'AE', 'GB', 'US', 'UM', 'UY', 'UZ', 'VU', 'VE', 'VN', 'VG', 'VI', 'WF', 'EH', 'YE',
'ZM', 'ZW'] # As of 2020-11-06
# There is no ISO 3166-1 country code for Kosovo, however "XK" is a self assigned code is used by many
# There is no ISO 3166-1 country code for the Republic of Kosovo, however "XK" is a self assigned code that is used by
# many international organisations per https://en.wikipedia.org/wiki/ISO_3166-2:RS#Note
iso_3166_1.append('XK')
# international organisations per https://en.wikipedia.org/wiki/ISO_3166-2:RS and is the list above
tz_deprecated = [
'Africa/Asmera', 'Africa/Timbuktu', 'America/Argentina/ComodRivadavia', 'America/Atka', 'America/Buenos_Aires',
'America/Catamarca', 'America/Coral_Harbour', 'America/Cordoba', 'America/Ensenada', 'America/Fort_Wayne',
Expand Down Expand Up @@ -62,7 +62,7 @@


def test_loading():
assert airportsdata.load()
assert airports


@py39_only
Expand Down Expand Up @@ -109,5 +109,4 @@ def test_iata_integrity():
@py39_only
def test_is_sorted():
"""Test that database is sorted alphabetically."""
airports = airportsdata.load()
assert list(airports.keys()) == sorted(airports.keys())

0 comments on commit 8e1b1b0

Please sign in to comment.