Skip to content

Commit a2dd677

Browse files
committed
Adapt remaining poetry run <commands>
1 parent 347f1f2 commit a2dd677

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: ./.github/actions/python-environment
2020

2121
- name: Check Version(s)
22-
run: poetry run version-check `poetry run python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"`
22+
run: poetry run version-check `poetry run -- python -c "from noxconfig import PROJECT_CONFIG; print(PROJECT_CONFIG.version_file)"`
2323

2424
Documentation:
2525
name: Docs
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Build Documentation
3737
run: |
38-
poetry run python -m nox -s docs:build
38+
poetry run -- nox -s docs:build
3939
4040
Changelog:
4141
name: Changelog Update Check

.github/workflows/report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Copy Artifacts into Root Folder
2828
working-directory: ./artifacts
2929
run: |
30-
poetry run coverage combine --keep coverage-python3.9*/.coverage
30+
poetry run -- coverage combine --keep coverage-python3.9*/.coverage
3131
# Errors during copying are ignored because they are checked in the next step
3232
cp .coverage ../ || true
3333
cp lint-python3.9/.lint.txt ../ || true
@@ -52,6 +52,6 @@ jobs:
5252
poetry run -- nox -s project:report -- --format markdown >> $GITHUB_STEP_SUMMARY
5353
poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY
5454
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
55-
poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
56-
poetry run tbx lint pretty-print >> $GITHUB_STEP_SUMMARY
57-
poetry run tbx security pretty-print .security.json >> $GITHUB_STEP_SUMMARY
55+
poetry run -- coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
56+
poetry run -- tbx lint pretty-print >> $GITHUB_STEP_SUMMARY
57+
poetry run -- tbx security pretty-print .security.json >> $GITHUB_STEP_SUMMARY

doc/user_guide/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ forward and you just can use the example *noxfile.py* bellow.
175175

176176
.. code-block:: shell
177177
178-
poetry run pre-commit install --hook-type pre-commit --hook-type pre-push
178+
poetry run -- pre-commit install --hook-type pre-commit --hook-type pre-push
179179
180180
.. _toolbox tasks:
181181

exasol/toolbox/pre_commit_hooks/package_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# ATTENTION:
2626
# This file is generated by exasol/toolbox/pre_commit_hooks/package_version.py when using:
2727
# * either "poetry run -- nox -s project:fix"
28-
# * or "poetry run version-check <path/version.py> --fix"
28+
# * or "poetry run -- version-check <path/version.py> --fix"
2929
# Do not edit this file manually!
3030
# If you need to change the version, do so in the project.toml, e.g. by using `poetry version X.Y.Z`.
3131
MAJOR = {major}

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
echo "Please enable the version check by replacing this output with shell command bellow:"
2424
echo ""
25-
echo "poetry run version-check <<VERSION_PY>>"
25+
echo "poetry run -- version-check <<VERSION_PY>>"
2626
echo ""
2727
echo "Note: <<VERSION_PY>> needs to point to the version file of the project (version.py)."
2828
exit 1
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Build Documentation
4343
run: |
44-
poetry run python -m nox -s docs:build
44+
poetry run -- nox -s docs:build
4545
4646
build-matrix:
4747
name: Generate Build Matrix

exasol/toolbox/templates/github/workflows/report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Copy Artifacts into Root Folder
2828
working-directory: ./artifacts
2929
run: |
30-
poetry run coverage combine --keep coverage-python3.9*/.coverage
30+
poetry run -- coverage combine --keep coverage-python3.9*/.coverage
3131
# Errors during copying are ignored because they are checked in the next step
3232
cp .coverage ../ || true
3333
cp lint-python3.9/.lint.txt ../ || true
@@ -52,6 +52,6 @@ jobs:
5252
poetry run -- nox -s project:report -- --format markdown >> $GITHUB_STEP_SUMMARY
5353
poetry run -- nox -s dependency:licenses >> $GITHUB_STEP_SUMMARY
5454
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
55-
poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
56-
poetry run tbx security pretty-print >> $GITHUB_STEP_SUMMARY
57-
poetry run tbx security pretty-print .security.json >> $GITHUB_STEP_SUMMARY
55+
poetry run -- coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
56+
poetry run -- tbx security pretty-print >> $GITHUB_STEP_SUMMARY
57+
poetry run -- tbx security pretty-print .security.json >> $GITHUB_STEP_SUMMARY

exasol/toolbox/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ATTENTION:
22
# This file is generated by exasol/toolbox/pre_commit_hooks/package_version.py when using:
33
# * either "poetry run -- nox -s project:fix"
4-
# * or "poetry run version-check <path/version.py> --fix"
4+
# * or "poetry run -- version-check <path/version.py> --fix"
55
# Do not edit this file manually!
66
# If you need to change the version, do so in the project.toml, e.g. by using `poetry version X.Y.Z`.
77
MAJOR = 0

project-template/{{cookiecutter.repo_name}}/exasol/{{cookiecutter.package_name}}/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ATTENTION:
22
# This file is generated by exasol/toolbox/pre_commit_hooks/package_version.py when using:
33
# * either "poetry run -- nox -s project:fix"
4-
# * or "poetry run version-check <path/version.py> --fix"
4+
# * or "poetry run -- version-check <path/version.py> --fix"
55
# Do not edit this file manually!
66
# If you need to change the version, do so in the project.toml, e.g. by using `poetry version X.Y.Z`.
77
MAJOR = 0

0 commit comments

Comments
 (0)