Skip to content

Commit

Permalink
Remove scriv configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Jan 9, 2025
1 parent c5b8828 commit 22608c2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 42 deletions.
37 changes: 0 additions & 37 deletions .change-log-entries-template.rst

This file was deleted.

35 changes: 34 additions & 1 deletion noxconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@
from pathlib import Path
from typing import Iterable

from exasol.toolbox.nox.plugin import hookimpl


class StartDB:

@hookimpl
def pre_integration_tests_hook(self, session, config, context):
port = context.get("port", 8563)
db_version = context.get("db_version", "7.1.17")
session.run(
"itde",
"spawn-test-environment",
"--create-certificates",
"--environment-name",
"test",
"--database-port-forward",
f"{port}",
"--bucketfs-port-forward",
"2580",
"--docker-db-image-version",
db_version,
"--db-mem-size",
"4GB",
external=True,
)


class StopDB:

@hookimpl
def post_integration_tests_hook(self, session, config, context):
session.run("docker", "kill", "db_container_test", external=True)


@dataclass(frozen=True)
class Config:
Expand All @@ -16,7 +49,7 @@ class Config:
"venv",
)

plugins = []
plugins = [StartDB, StopDB]


PROJECT_CONFIG = Config()
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ profile = "black"
force_grid_wrap = 2

[tool.pylint.master]
fail-under = 5.8
fail-under = 5.5

[tool.pylint.format]
max-line-length = 88
Expand All @@ -140,6 +140,3 @@ module = [
]
ignore_errors = true

[tool.scriv]
new_fragment_template = "file: templates/fragment-template.rst"
version = "literal: pyproject.toml: tool.poetry.version"

0 comments on commit 22608c2

Please sign in to comment.