Skip to content

Commit

Permalink
feat: semantic-release 9.10 and complete typing stubs
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <rjdbcm@outlook.com>
  • Loading branch information
rjdbcm committed Oct 14, 2024
1 parent 110f52d commit bd1b317
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 44 deletions.
3 changes: 2 additions & 1 deletion meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,5 @@ option(
type: 'array',
value: ['README.rst'],
yield: false,
)
)
option('lint-timeout-multiplier', type: 'integer', value: 3)
2 changes: 1 addition & 1 deletion ozi_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def current_version() -> str:
try:
version_ = version('OZI')
except PackageNotFoundError: # pragma: no cover
version_ = str('1.20')
version_ = str('1.22')
return version_


Expand Down
6 changes: 3 additions & 3 deletions ozi_core/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from warnings import warn

import requests
from ozi_spec import METADATA # pyright: ignore
from ozi_spec import OZI # pyright: ignore
from ozi_spec import Metadata # pyright: ignore
from ozi_spec import METADATA
from ozi_spec import OZI
from ozi_spec import Metadata
from packaging.version import Version
from packaging.version import parse
from pyparsing import ParseException
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Generator
from typing import Sequence

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from tap_producer import TAP

from ozi_core._i18n import TRANSLATION
Expand Down
12 changes: 6 additions & 6 deletions ozi_core/fix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
from typing import TYPE_CHECKING
from typing import NoReturn

from ozi_spec import METADATA # pyright: ignore
from ozi_templates import load_environment # type: ignore
from ozi_templates.filter import underscorify # type: ignore
from ozi_spec import METADATA
from ozi_templates import load_environment
from ozi_templates.filter import underscorify # pyright: ignore
from tap_producer import TAP

from ozi_core.fix.missing import report # pyright: ignore
from ozi_core.fix.parser import parser # pyright: ignore
from ozi_core.fix.missing import report
from ozi_core.fix.parser import parser
from ozi_core.fix.rewrite_command import Rewriter
from ozi_core.new.validate import valid_copyright_head # pyright: ignore
from ozi_core.new.validate import valid_copyright_head

if TYPE_CHECKING: # pragma: no cover
from argparse import Namespace
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/fix/build_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path
from typing import Generator

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from tap_producer import TAP

from ozi_core import comment
Expand Down
4 changes: 2 additions & 2 deletions ozi_core/fix/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from pathlib import Path
from typing import TYPE_CHECKING

from ozi_spec import METADATA # pyright: ignore
from ozi_templates.filter import underscorify # type: ignore
from ozi_spec import METADATA
from ozi_templates.filter import underscorify # pyright: ignore
from tap_producer import TAP

from ozi_core._i18n import TRANSLATION
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/fix/rewrite_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from typing import Union
from warnings import warn

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA

from ozi_core._i18n import TRANSLATION
from ozi_core.render import build_child
Expand Down
14 changes: 7 additions & 7 deletions ozi_core/new/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
termios.tcgetattr = lambda x: None
termios.tcsetattr = lambda x, y, z: None

from ozi_spec import METADATA # pyright: ignore
from ozi_templates import load_environment # type: ignore
from ozi_spec import METADATA
from ozi_templates import load_environment
from tap_producer import TAP

from ozi_core.new.interactive import interactive_prompt # pyright: ignore
from ozi_core.new.parser import parser # pyright: ignore
from ozi_core.new.validate import postprocess_arguments # pyright: ignore
from ozi_core.new.validate import preprocess_arguments # pyright: ignore
from ozi_core.render import RenderedContent # pyright: ignore
from ozi_core.new.interactive import interactive_prompt
from ozi_core.new.parser import parser
from ozi_core.new.validate import postprocess_arguments
from ozi_core.new.validate import preprocess_arguments
from ozi_core.render import RenderedContent

if TYPE_CHECKING: # pragma: no cover
from argparse import Namespace
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from typing import Callable
from typing import TypeAlias
from unittest.mock import Mock

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from ozi_templates import load_environment
from tap_producer import TAP

Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/interactive/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from enum import unique
from typing import Any

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from prompt_toolkit.shortcuts import button_dialog # pyright: ignore
from prompt_toolkit.shortcuts import checkboxlist_dialog # pyright: ignore
from prompt_toolkit.shortcuts import radiolist_dialog # pyright: ignore
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/interactive/menu.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from enum import Enum
from enum import unique
from typing import Any

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA

def checkbox(checked: bool) -> str:
...
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/interactive/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import TYPE_CHECKING
from typing import Sequence

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from prompt_toolkit.shortcuts import button_dialog # pyright: ignore
from prompt_toolkit.shortcuts import checkboxlist_dialog # pyright: ignore
from prompt_toolkit.shortcuts import message_dialog # pyright: ignore
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import argparse
import sys

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA

from ozi_core._i18n import TRANSLATION
from ozi_core.actions import CloseMatch
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/new/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from typing import Sequence
from urllib.parse import urlparse

from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from pyparsing import Combine
from pyparsing import ParseException
from pyparsing import ParseResults
Expand Down
4 changes: 2 additions & 2 deletions ozi_core/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

from git import InvalidGitRepositoryError
from git import Repo
from ozi_spec import METADATA # pyright: ignore
from ozi_templates.filter import underscorify # type: ignore
from ozi_spec import METADATA
from ozi_templates.filter import underscorify # pyright: ignore
from tap_producer import TAP

from ozi_core._i18n import TRANSLATION
Expand Down
2 changes: 1 addition & 1 deletion ozi_core/spdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# See LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""SPDX standard metadata parser expression grammars, with support for :pep:`639` keys."""
from ozi_spec import METADATA # pyright: ignore
from ozi_spec import METADATA
from pyparsing import Combine
from pyparsing import Forward
from pyparsing import Keyword
Expand Down
14 changes: 2 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ dependencies = [
'dnspython',
'idna>=2',
'meson[ninja]>=1.1.0',
'ozi-spec~=0.10.2',
'ozi-templates~=2.12.1',
'ozi-spec~=0.10.6',
'ozi-templates~=2.12.3',
'packaging~=24.1',
'prompt-toolkit',
'pyparsing~=3.1',
Expand Down Expand Up @@ -194,16 +194,6 @@ exclude = [
module = ["ozi_core.vendor.*"]
ignore_errors = true

[[tool.mypy.overrides]]
module = ["ozi_spec.*"]
ignore_errors = true
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["ozi_templates.*"]
ignore_errors = true
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["spdx_license_list.*"]
ignore_missing_imports = true
Expand Down

0 comments on commit bd1b317

Please sign in to comment.