Skip to content

Commit 955a70f

Browse files
committed
Modify project:format to format:check
1 parent ad53fde commit 955a70f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
uses: ./.github/actions/python-environment
159159

160160
- name: Run format check
161-
run: poetry run -- nox -s project:format
161+
run: poetry run -- nox -s format:check
162162

163163
Build-Packages:
164164
name: Build Package Check

doc/changes/unreleased.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
## Refactoring
44

5-
* #606: Renamed nox session `project:fix` more aptly to `format:fix`
5+
* #606: Renamed nox session `project:fix` more aptly to `format:fix` and `project:format` to `format:check`

doc/user_guide/features/formatting_code/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ deterministic manner.
4040
+====================+==================+====================================+
4141
| ``format:fix`` | No | Applies code formatting changes |
4242
+--------------------+------------------+------------------------------------+
43-
| ``project:format`` | ``checks.yml`` | Checks that current code does not |
43+
| ``format:check`` | ``checks.yml`` | Checks that current code does not |
4444
| | | need to be re-formatted |
4545
+--------------------+------------------+------------------------------------+
4646

doc/user_guide/features/formatting_code/troubleshooting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Formatting still fails after running ``format:fix``
99
If when you execute:
1010

1111
#. Run ``format:fix``
12-
#. Run ``project:format``
12+
#. Run ``format:check``
1313

14-
you receive an error from ``project:format`` (i.e. ``isort`` or ``black``), it it
14+
you receive an error from ``format:check`` (i.e. ``isort`` or ``black``), it it
1515
likely that you need to update your configuration to align with
1616
:ref:`formatting_configuration`.
1717

@@ -44,7 +44,7 @@ might want to ignore automatically applied formatting.
4444
+-----------------------+--------------------------------+-----------------------+
4545

4646

47-
In the ``checks.yml``, ``project:format`` wants me to reformat code I did not modify
47+
In the ``checks.yml``, ``format:check`` wants me to reformat code I did not modify
4848
------------------------------------------------------------------------------------
4949

5050
This is likely due to one of our tools (i.e. ``black``) being upgraded. Within the

exasol/toolbox/nox/_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def fix(session: Session) -> None:
5252
_code_format(session, Mode.Fix, py_files)
5353

5454

55-
@nox.session(name="project:format", python=False)
55+
@nox.session(name="format:check", python=False)
5656
def fmt_check(session: Session) -> None:
5757
"""Checks the project for correct formatting"""
5858
py_files = python_files(PROJECT_CONFIG.root)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
uses: exasol/python-toolbox/.github/actions/python-environment@v3
159159

160160
- name: Run format check
161-
run: poetry run -- nox -s project:format
161+
run: poetry run -- nox -s format:check
162162

163163
Build-Packages:
164164
name: Build Package Check

0 commit comments

Comments
 (0)