Skip to content

Remove Defunct Default Config #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions cppython/data.py

This file was deleted.

44 changes: 22 additions & 22 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ dynamic = ["version"]
requires-python = ">=3.10"

dependencies = [
"click>=8.1.2",
"tomlkit>=0.10.1",
"cppython-core>=0.3.2",
"click>=8.1.3",
"tomlkit>=0.10.2",
"cppython-core>=0.3.3.dev0",
"pydantic>=1.9.0",
]

Expand All @@ -37,10 +37,10 @@ lint = [
"isort>=5.10.1",
]
test = [
"pytest>=7.1.1",
"pytest>=7.1.2",
"pytest-cov>=3.0.0",
"pytest-mock>=3.7.0",
"pytest-cppython>=0.1.6",
"pytest-cppython>=0.1.7.dev0",
]

[project.scripts]
Expand All @@ -59,8 +59,7 @@ preview = true
profile = "black"

[tool.pylint.messages_control]
disable = "C0330, C0326"
disable = "logging-fstring-interpolation"
disable = "C0330, C0326, logging-fstring-interpolation"
extension-pkg-whitelist = "pydantic"

[tool.pylint.format]
Expand Down
15 changes: 13 additions & 2 deletions tests/unit/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@

import pytest
from click.testing import CliRunner
from cppython_core.schema import API
from cppython_core.schema import (
API,
PEP621,
CPPythonData,
PyProject,
TargetEnum,
ToolData,
)
from pytest_cppython.plugin import InterfaceUnitTests
from pytest_mock.plugin import MockerFixture

from cppython.console import Config, ConsoleInterface, cli
from cppython.data import default_pyproject

default_pep621 = PEP621(name="test_name", version="1.0")
default_cppython_data = CPPythonData(**{"target": TargetEnum.EXE})
default_tool_data = ToolData(**{"cppython": default_cppython_data})
default_pyproject = PyProject(**{"project": default_pep621, "tool": default_tool_data})


class TestCLIInterface(InterfaceUnitTests):
Expand Down
10 changes: 9 additions & 1 deletion tests/unit/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
import logging

from cppython_core.schema import (
PEP621,
CPPythonData,
Generator,
GeneratorConfiguration,
GeneratorData,
PyProject,
TargetEnum,
ToolData,
)
from pytest_mock import MockerFixture

from cppython.data import default_pyproject
from cppython.project import Project, ProjectBuilder, ProjectConfiguration

default_pep621 = PEP621(name="test_name", version="1.0")
default_cppython_data = CPPythonData(**{"target": TargetEnum.EXE})
default_tool_data = ToolData(**{"cppython": default_cppython_data})
default_pyproject = PyProject(**{"project": default_pep621, "tool": default_tool_data})


class MockGeneratorData(GeneratorData):
"""
Expand Down