diff --git a/.codeclimate.yml b/.codeclimate.yml index 0cb746cd605..680d017144d 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -40,8 +40,7 @@ plugins: exclude_patterns: - "src/metpy/io/_nexrad_msgs/msg*.py" -- "src/metpy/io/metar_parse.peg" -- "src/metpy/io/metar_parser.py" +- "src/metpy/io/_metar_parser/*" - "docs/**/*" - "staticdata/**/*" - "tests/*/baseline/*" diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index 6e53bfa7c05..40e7750dd02 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -4,6 +4,6 @@ queries: - uses: security-and-quality paths-ignore: - - src/metpy/io/metar_parser.py + - src/metpy/io/_metar_parser - tutorials - examples diff --git a/.lgtm.yml b/.lgtm.yml index 0e1f391053d..52615ab668b 100644 --- a/.lgtm.yml +++ b/.lgtm.yml @@ -1,6 +1,6 @@ path_classifiers: generated: - - src/metpy/io/metar_parser.py + - src/metpy/io/_metar_parser/metar_parser.py library: - src/metpy/deprecation.py test: diff --git a/setup.cfg b/setup.cfg index 642a869c1b3..f9a4d9ff56b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -79,7 +79,7 @@ multiline-quotes = double rst-roles = class, data, doc, func, meth, mod rst-directives = plot, versionchanged docstring-convention = numpy -exclude = docs build src/metpy/io/metar_parser.py +exclude = docs build src/metpy/io/_metar_parser/metar_parser.py select = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z B902 ignore = F405 W503 RST902 SIM106 per-file-ignores = examples/*.py: D MPY001 T003 T001 diff --git a/src/metpy/io/metar_parser.peg b/src/metpy/io/_metar_parser/metar_parser.peg similarity index 100% rename from src/metpy/io/metar_parser.peg rename to src/metpy/io/_metar_parser/metar_parser.peg diff --git a/src/metpy/io/metar_parser.py b/src/metpy/io/_metar_parser/metar_parser.py similarity index 100% rename from src/metpy/io/metar_parser.py rename to src/metpy/io/_metar_parser/metar_parser.py diff --git a/src/metpy/io/metar.py b/src/metpy/io/metar.py index 83deaa53d7e..8ab8bb1c50e 100644 --- a/src/metpy/io/metar.py +++ b/src/metpy/io/metar.py @@ -10,8 +10,8 @@ import numpy as np import pandas as pd +from ._metar_parser.metar_parser import parse, ParseError from ._tools import open_as_needed -from .metar_parser import parse, ParseError from .station_data import station_info from ..package_tools import Exporter from ..units import units