mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 19:07:17 +01:00
40 lines
854 B
Python
40 lines
854 B
Python
"""Shared configuration for the markdown-naming convention.
|
|
|
|
Single source of truth for the three namespaces, the TODO ban and the
|
|
exemption list, imported by the pre-commit gate (`check.py`). This module is
|
|
the public surface:
|
|
:mod:`md_naming._tables` holds the data, :mod:`md_naming.rules` the predicates.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from md_naming._tables import (
|
|
ALLOWED_PATTERN,
|
|
COMMUNITY_NAMES,
|
|
EXEMPT_SUBPATHS,
|
|
EXTRA_THIRD_PARTY,
|
|
HARNESS_NAMES,
|
|
MARKER,
|
|
TODO_PREFIX,
|
|
)
|
|
from md_naming.rules import (
|
|
has_allowed_name,
|
|
is_exempt,
|
|
is_markdown,
|
|
is_todo,
|
|
)
|
|
|
|
__all__ = [
|
|
"ALLOWED_PATTERN",
|
|
"COMMUNITY_NAMES",
|
|
"EXEMPT_SUBPATHS",
|
|
"EXTRA_THIRD_PARTY",
|
|
"HARNESS_NAMES",
|
|
"MARKER",
|
|
"TODO_PREFIX",
|
|
"has_allowed_name",
|
|
"is_exempt",
|
|
"is_markdown",
|
|
"is_todo",
|
|
]
|