Skip to content

Commit

Permalink
MNT: Move METAR PEG parser to private subdirectory
Browse files Browse the repository at this point in the history
This allows us to ignore it in CodeQL scanning.
  • Loading branch information
dopplershift committed Jun 24, 2021
1 parent 1db3f51 commit de081c5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .codeclimate.yml
Expand Up @@ -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/*"
Expand Down
2 changes: 1 addition & 1 deletion .github/codeql/codeql-config.yml
Expand Up @@ -4,6 +4,6 @@ queries:
- uses: security-and-quality

paths-ignore:
- src/metpy/io/metar_parser.py
- src/metpy/io/_metar_parser
- tutorials
- examples
2 changes: 1 addition & 1 deletion .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:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/metpy/io/metar.py
Expand Up @@ -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
Expand Down

0 comments on commit de081c5

Please sign in to comment.