Skip to content

Commit

Permalink
add exasol-toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis-Mittenzwei committed Sep 18, 2024
1 parent 5ad84bf commit f29db69
Show file tree
Hide file tree
Showing 5 changed files with 1,187 additions and 206 deletions.
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
default_stages: [ commit ]
repos:

# - repo: local
# hooks:
# - id: code-format
# name: code-format
# types: [ python ]
# pass_filenames: false
# language: system
# entry: poetry run nox -s fix

# - repo: local
# hooks:
# - id: type-check
# name: type-check
# types: [ python ]
# pass_filenames: false
# language: system
# entry: poetry run nox -s type-check
#
# - repo: local
# hooks:
# - id: lint
# name: lint
# types: [ python ]
# pass_filenames: false
# language: system
# entry: poetry run nox -s lint

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
20 changes: 20 additions & 0 deletions noxconfig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from __future__ import annotations

from dataclasses import dataclass
from pathlib import Path
from typing import Iterable

from nox import Session


@dataclass(frozen=True)
class Config:
root: Path = Path(__file__).parent
doc: Path = Path(__file__).parent / "doc"
version_file: Path = (
Path(__file__).parent / "exasol_script_languages_container_ci" / "version.py"
)
path_filters: Iterable[str] = ("dist", ".eggs", "venv", "resources")


PROJECT_CONFIG = Config()
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import nox

# imports all nox task provided by the toolbox
from exasol.toolbox.nox.tasks import * # type: ignore

# default actions to be run if nothing is explicitly specified with the -s option
nox.options.sessions = ["fix"]
Loading

0 comments on commit f29db69

Please sign in to comment.