Skip to content
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
5 changes: 3 additions & 2 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Unreleased

## ✨ Added
## ✨ Features

* [#73](https://github.com/exasol/python-toolbox/issues/73): Added nox target for auditing work spaces in regard to known vulnerabilities
* [#65](https://github.com/exasol/python-toolbox/issues/65): Added a Nox task for checking if the changelog got updated.
* [#65](https://github.com/exasol/python-toolbox/issues/65): Added a Nox task for checking if the changelog got updated.
* [#369](https://github.com/exasol/python-toolbox/issues/369): Removed option `-v` for `isort`
11 changes: 5 additions & 6 deletions exasol/toolbox/nox/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@


def _code_format(session: Session, mode: Mode, files: Iterable[str]) -> None:
isort = ["poetry", "run", "isort", "-v"]
black = ["poetry", "run", "black"]
isort = isort if mode == Mode.Fix else isort + ["--check"]
black = black if mode == Mode.Fix else black + ["--check"]
session.run(*isort, *files)
session.run(*black, *files)
def command(*args: str) -> Iterable[str]:
return args if mode == Mode.Fix else list(args) + ["--check"]

session.run(*command("poetry", "run", "isort"), *files)
session.run(*command("poetry", "run", "black"), *files)


def _pyupgrade(session: Session, files: Iterable[str]) -> None:
Expand Down
Loading