Skip to content

Commit ad53fde

Browse files
committed
Modify project:fix to format:fix
1 parent b1fa4ae commit ad53fde

File tree

15 files changed

+23
-19
lines changed

15 files changed

+23
-19
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
types: [ python ]
99
pass_filenames: false
1010
language: system
11-
entry: poetry run -- nox -s project:fix
11+
entry: poetry run -- nox -s format:fix
1212
stages: [ pre-commit ]
1313

1414
- repo: local
@@ -39,4 +39,4 @@ repos:
3939
- id: end-of-file-fixer
4040
stages: [ pre-commit ]
4141
- id: trailing-whitespace
42-
stages: [ pre-commit ]
42+
stages: [ pre-commit ]

doc/changes/unreleased.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# Unreleased
2+
3+
## Refactoring
4+
5+
* #606: Renamed nox session `project:fix` more aptly to `format:fix`

doc/user_guide/features/formatting_code/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ deterministic manner.
3838
+--------------------+------------------+------------------------------------+
3939
| Nox session | CI Usage | Action |
4040
+====================+==================+====================================+
41-
| ``project:fix`` | No | Applies code formatting changes |
41+
| ``format:fix`` | No | Applies code formatting changes |
4242
+--------------------+------------------+------------------------------------+
4343
| ``project:format`` | ``checks.yml`` | Checks that current code does not |
4444
| | | need to be re-formatted |

doc/user_guide/features/formatting_code/troubleshooting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
Troubleshooting
44
===============
55

6-
Formatting still fails after running ``project:fix``
6+
Formatting still fails after running ``format:fix``
77
----------------------------------------------------
88

99
If when you execute:
1010

11-
#. Run ``project:fix``
11+
#. Run ``format:fix``
1212
#. Run ``project:format``
1313

1414
you receive an error from ``project:format`` (i.e. ``isort`` or ``black``), it it

doc/user_guide/migrating.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ For example, if test execution isn't performed in the standard way (e.g., :code:
6363
from exasol.toolbox.nox.tasks import * # pylint: disable=wildcard-import disable=unused-wildcard-import
6464
6565
# default actions to be run if nothing is explicitly specified with the -s option
66-
nox.options.sessions = ["project:fix"]
66+
nox.options.sessions = ["format:fix"]
6767
68-
@nox.session(name="project:fix", python=False)
68+
@nox.session(name="format:fix", python=False)
6969
def my_project_fix_overwrite(session) -> None:
7070
"""Runs all automated fixes on the code base"""
7171
@@ -75,7 +75,7 @@ For example, if test execution isn't performed in the standard way (e.g., :code:
7575
from exasol.toolbox.nox._shared import python_files
7676
7777
py_files = [f"{file}" for file in python_files(PROJECT_CONFIG.root)]
78-
print("The original 'project:fix' task has been taken hostage by this overwrite")
78+
print("The original 'format:fix' task has been taken hostage by this overwrite")
7979
print("Files:\n{files}".format(files="\n".join(py_files))
8080
8181

exasol/toolbox/nox/_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def command(*args: str) -> Iterable[str]:
4242
session.run(*command("ruff", "check"), *files)
4343

4444

45-
@nox.session(name="project:fix", python=False)
45+
@nox.session(name="format:fix", python=False)
4646
def fix(session: Session) -> None:
4747
"""Runs all automated fixes on the code base"""
4848
py_files = python_files(PROJECT_CONFIG.root)

exasol/toolbox/nox/_package_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"""
2424
ATTENTION:
2525
This file is generated by exasol/toolbox/nox/_package_version.py when using:
26-
* either "poetry run -- nox -s project:fix"
26+
* either "poetry run -- nox -s format:fix"
2727
* or "poetry run -- nox -s version:check -- --fix"
2828
Do not edit this file manually!
2929
If you need to change the version, do so in the pyproject.toml, e.g. by using

exasol/toolbox/templates/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from exasol.toolbox.nox.tasks import *
55

66
# default actions to be run if nothing is explicitly specified with the -s option
7-
nox.options.sessions = ["project:fix"]
7+
nox.options.sessions = ["format:fix"]

exasol/toolbox/templates/pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
types: [ python ]
99
pass_filenames: false
1010
language: system
11-
entry: poetry run -- nox -s project:fix
11+
entry: poetry run -- nox -s format:fix
1212

1313
- repo: local
1414
hooks:

exasol/toolbox/version.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)