diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af7b5c1..3b88b5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3f4b488..d59e5fb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,10 @@ on the UTC date of the release. `Contributions `__ always welcomed! +Version 20210525 +================ +* Added ``iata`` entry for PGUA/Andersen Air Force Base + Version 20210425 ================ * Multiple additions and fixes contributed by `Edward Weymouth `__ in `#1 diff --git a/README.rst b/README.rst index 29c8d8b..b275d15 100644 --- a/README.rst +++ b/README.rst @@ -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/ diff --git a/RELEASE.rst b/RELEASE.rst new file mode 100644 index 0000000..dbd14c6 --- /dev/null +++ b/RELEASE.rst @@ -0,0 +1,3 @@ +Version 20210525 +================ +* Added ``iata`` entry for PGUA/Andersen Air Force Base diff --git a/airportsdata/__init__.py b/airportsdata/__init__.py index d53930d..d39d098 100644 --- a/airportsdata/__init__.py +++ b/airportsdata/__init__.py @@ -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 ' __copyright__ = 'Copyright 2020- Mike Borsetti' diff --git a/airportsdata/airports.csv b/airportsdata/airports.csv index 6e765b2..291d333 100644 --- a/airportsdata/airports.csv +++ b/airportsdata/airports.csv @@ -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" diff --git a/tests/airportsdata_test.py b/tests/airportsdata_test.py index 490db64..1545189 100644 --- a/tests/airportsdata_test.py +++ b/tests/airportsdata_test.py @@ -1,4 +1,4 @@ -"""Tests""" +"""Tests.""" import sys import warnings @@ -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() @@ -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', @@ -62,7 +62,7 @@ def test_loading(): - assert airportsdata.load() + assert airports @py39_only @@ -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())