Skip to content

Commit e0b677f

Browse files
committed
Apply formatter
1 parent da28a23 commit e0b677f

File tree

3 files changed

+42
-37
lines changed

3 files changed

+42
-37
lines changed

doc/user_guide/getting_started.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,20 @@ You are ready to use the toolbox. With *nox -l* you can list all available tasks
184184
$ nox -l
185185
Sessions defined in <PATH_TO_YOUR_PROJECT>/noxfile.py:
186186
187+
* project:fix -> Runs all automated fixes on the code base
188+
- project:check -> Runs all available checks on the project
189+
- project:report -> Collects and generates metrics summary for the workspace
190+
- test:unit -> Runs all unit tests
191+
- test:integration -> Runs the all integration tests
192+
- test:coverage -> Runs all tests (unit + integration) and reports the code coverage
193+
- lint:code -> Runs the static code analyzer on the project
194+
- lint:typing -> Runs the type checker on the project
195+
- lint:security -> Runs the security linter on the project
187196
- docs:multiversion -> Builds the project documentation
188197
- docs:build -> Builds the project documentation
189198
- docs:open -> Opens the built project documentation
190199
- docs:clean -> Removes the documentations build folder
191-
- project:fix -> Runs all automated fixes on the code base
192-
- lint:code -> Runs the static code analyzer on the project
193-
- lint:typing -> Runs the type checker on the project
194-
- lint:security -> Runs the security linter on the project
195-
- project:report -> Collects and generates metrics summary for the workspace
196200
- release:prepare -> Prepares the project for a new release.
197-
- test:unit -> Runs all unit tests
198-
- test:integration -> Runs the all integration tests
199-
- coverage -> Runs all tests (unit + integration) and reports the code coverage
200-
- check -> Runs all available checks on the project
201201
202202
sessions marked with * are selected, sessions marked with - are skipped.
203203

exasol/toolbox/nox/_documentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _build_multiversion_docs(session: nox.Session, config: Config) -> None:
3838

3939
@nox.session(name="docs:multiversion", python=False)
4040
def build_multiversion(session: Session) -> None:
41-
"""Builds the project documentation"""
41+
"""Builds the multiversion project documentation"""
4242
_build_multiversion_docs(session, PROJECT_CONFIG)
4343

4444

exasol/toolbox/nox/tasks.py

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,52 +16,57 @@
1616
]
1717

1818

19-
import argparse
20-
2119
import nox
2220
from nox import Session
2321

24-
from exasol.toolbox.nox._documentation import (
25-
build_docs,
26-
clean_docs,
27-
open_docs,
28-
)
2922
from exasol.toolbox.nox._format import (
3023
_code_format,
3124
_pyupgrade,
3225
fix,
3326
)
27+
28+
# fmt: off
29+
# isort: off
30+
from noxconfig import PROJECT_CONFIG
31+
32+
33+
@nox.session(name="project:check", python=False)
34+
def check(session: Session) -> None:
35+
"""Runs all available checks on the project"""
36+
context = _context(session, coverage=True)
37+
py_files = [f"{file}" for file in python_files(PROJECT_CONFIG.root)]
38+
_version(session, Mode.Check, PROJECT_CONFIG.version_file)
39+
_pyupgrade(session, py_files)
40+
_code_format(session, Mode.Check, py_files)
41+
_pylint(session, py_files)
42+
_type_check(session, py_files)
43+
_coverage(session, PROJECT_CONFIG, context)
44+
45+
from exasol.toolbox.nox._metrics import report
46+
from exasol.toolbox.nox._test import (
47+
_coverage,
48+
coverage,
49+
integration_tests,
50+
unit_tests,
51+
)
3452
from exasol.toolbox.nox._lint import (
3553
_pylint,
3654
_type_check,
3755
lint,
3856
type_check,
3957
)
40-
from exasol.toolbox.nox._metrics import report
58+
from exasol.toolbox.nox._documentation import (
59+
build_docs,
60+
clean_docs,
61+
open_docs,
62+
)
4163
from exasol.toolbox.nox._release import prepare_release
4264
from exasol.toolbox.nox._shared import (
4365
Mode,
4466
_context,
4567
_version,
4668
python_files,
4769
)
48-
from exasol.toolbox.nox._test import (
49-
_coverage,
50-
coverage,
51-
integration_tests,
52-
unit_tests,
53-
)
54-
from noxconfig import PROJECT_CONFIG
5570

56-
57-
@nox.session(name="check", python=False)
58-
def check(session: Session) -> None:
59-
"""Runs all available checks on the project"""
60-
context = _context(session, coverage=True)
61-
py_files = [f"{file}" for file in python_files(PROJECT_CONFIG.root)]
62-
_version(session, Mode.Check, PROJECT_CONFIG.version_file)
63-
_pyupgrade(session, py_files)
64-
_code_format(session, Mode.Check, py_files)
65-
_pylint(session, py_files)
66-
_type_check(session, py_files)
67-
_coverage(session, PROJECT_CONFIG, context)
71+
# isort: on
72+
# fmt: on

0 commit comments

Comments
 (0)