File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
user_guide/features/formatting_code
templates/github/workflows Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ Formatting still fails after running ``format:fix``
99If 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
1515likely 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
5050This is likely due to one of our tools (i.e. ``black ``) being upgraded. Within the
Original file line number Diff line number Diff 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 )
5656def fmt_check (session : Session ) -> None :
5757 """Checks the project for correct formatting"""
5858 py_files = python_files (PROJECT_CONFIG .root )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments