Skip to content

Commit

Permalink
prefix asdf.extern with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Dec 5, 2023
1 parent 1d7d445 commit 984dbe7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exclude: "asdf/(extern||_jsonschema)/.*"
exclude: "asdf/(_extern||_jsonschema)/.*"
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion asdf/_tests/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tempfile
import threading

from asdf.extern.RangeHTTPServer import RangeHTTPRequestHandler
from asdf._extern.RangeHTTPServer import RangeHTTPRequestHandler

__all__ = ["HTTPServer", "RangeHTTPServer"]

Expand Down
2 changes: 1 addition & 1 deletion asdf/generic_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import numpy as np

from . import util
from ._extern import atomicfile
from .exceptions import DelimiterNotFoundError
from .extern import atomicfile
from .util import _patched_urllib_parse

__all__ = ["get_file", "get_uri", "resolve_uri", "relative_uri"]
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ force-exclude = '''
| \.git
| \.pytest_cache
| \.tox
| asdf/extern
| asdf/_extern
| asdf/_jsonschema
| build
| dist
Expand Down Expand Up @@ -126,7 +126,7 @@ omit = [
'asdf/*/*/tests/*',
'asdf/version.*',
'asdf/compat*',
'asdf/extern*',
'asdf/_extern*',
'asdf/_jsonschema/**',
# And again for running against installed version
'*/asdf/_astropy_init*',
Expand All @@ -141,7 +141,7 @@ omit = [
'*/asdf/*/*/tests/*',
'*/asdf/version.*',
'*/asdf/compat*',
'*/asdf/extern*',
'*/asdf/_extern*',
'*/asdf/_jsonschema/**',
]

Expand Down Expand Up @@ -176,18 +176,18 @@ extend-ignore = [
"S310", # URL open for permitted schemes
"RUF012", # mutable-class-default (typing related)
]
extend-exclude = ["asdf/extern/*", "asdf/_jsonschema/*", "docs/*"]
extend-exclude = ["asdf/_extern/*", "asdf/_jsonschema/*", "docs/*"]

[tool.ruff.per-file-ignores]
"test_*.py" = ["S101"]
"asdf/_tests/_helpers.py" = ["S101"]
"compatibility_tests/common.py" = ["S101"]

[tool.flynt]
exclude = ["asdf/extern/*", "asdf/_jsonschema/*"]
exclude = ["asdf/_extern/*", "asdf/_jsonschema/*"]

[tool.codespell]
skip="*.pdf,*.asdf,.tox,asdf/extern,asdf/_jsonschema,build,./tags,.git,docs/_build"
skip="*.pdf,*.asdf,.tox,asdf/_extern,asdf/_jsonschema,build,./tags,.git,docs/_build"
ignore-words-list="""
fo,afile,
"""

0 comments on commit 984dbe7

Please sign in to comment.