-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python toolbox to pytest-itde as dev dependency
- Loading branch information
Showing
11 changed files
with
1,101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
pytest-itde/src/exasol/pytest_itde/config.py → pytest-itde/exasol/pytest_itde/config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ATTENTION: | ||
# This file is generated by exasol/toolbox/pre_commit_hooks/package_version.py when using: | ||
# * either "poetry run nox -s fix" | ||
# * or "poetry run version-check <path/version.py> --fix" | ||
# Do not edit this file manually! | ||
# If you need to change the version, do so in the project.toml, e.g. by using `poetry version X.Y.Z`. | ||
MAJOR = 0 | ||
MINOR = 1 | ||
PATCH = 0 | ||
VERSION = f"{MAJOR}.{MINOR}.{PATCH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"""Configuration for nox based task runner""" | ||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass | ||
from pathlib import Path | ||
from typing import ( | ||
Any, | ||
Iterable, | ||
MutableMapping, | ||
) | ||
|
||
from nox import Session | ||
|
||
|
||
@dataclass(frozen=True) | ||
class Config: | ||
"""Project specific configuration used by nox infrastructure""" | ||
|
||
root: Path = Path(__file__).parent | ||
doc: Path = Path(__file__).parent / "doc" | ||
version_file: Path = Path(__file__).parent / "exasol" / "pytest_itde" / "version.py" | ||
path_filters: Iterable[str] = ("dist", ".eggs", "venv", "metrics-schema") | ||
|
||
@staticmethod | ||
def pre_integration_tests_hook( | ||
_session: Session, _config: Config, _context: MutableMapping[str, Any] | ||
) -> bool: | ||
"""Implement if project specific behaviour is required""" | ||
return True | ||
|
||
@staticmethod | ||
def post_integration_tests_hook( | ||
_session: Session, _config: Config, _context: MutableMapping[str, Any] | ||
) -> bool: | ||
"""Implement if project specific behaviour is required""" | ||
return True | ||
|
||
|
||
PROJECT_CONFIG = Config() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""defines nox tasks/targets for this project""" | ||
import sys | ||
|
||
import nox | ||
|
||
print(sys.path) | ||
# imports all nox task provided by the toolbox | ||
from exasol.toolbox.nox.tasks import * # pylint: disable=wildcard-import disable=unused-wildcard-import | ||
|
||
# default actions to be run if nothing is explicitly specified with the -s option | ||
nox.options.sessions = ["fix"] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.1.0" | |
description = "" | ||
authors = ["Nicola Coretti <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "exasol", from = "src"}] | ||
packages = [{include = "exasol"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<4" | ||
|
@@ -15,6 +15,47 @@ pyexasol = ">=0.25" | |
[tool.poetry.plugins.pytest11] | ||
itde = "exasol.pytest_itde" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
exasol-toolbox = "0.8.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.coverage.run] | ||
relative_files = true | ||
source = [ | ||
"exasol", | ||
] | ||
|
||
[tool.coverage.report] | ||
fail_under = 15 | ||
|
||
|
||
[tool.black] | ||
line-length = 88 | ||
verbose = false | ||
include = "\\.pyi?$" | ||
|
||
|
||
[tool.isort] | ||
profile = "black" | ||
force_grid_wrap = 2 | ||
|
||
|
||
[tool.pylint.master] | ||
fail-under = 8.1 | ||
output-format = "colorized,json:.lint.json,text:.lint.txt" | ||
|
||
[tool.pylint.format] | ||
max-line-length = 88 | ||
max-module-lines = 800 | ||
|
||
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"test.unit.*", | ||
"test.integration.*", | ||
] | ||
ignore_errors = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def test_smoke(): | ||
assert True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters