|
16 | 16 | ] |
17 | 17 |
|
18 | 18 |
|
19 | | -import argparse |
20 | | - |
21 | 19 | import nox |
22 | 20 | from nox import Session |
23 | 21 |
|
24 | | -from exasol.toolbox.nox._documentation import ( |
25 | | - build_docs, |
26 | | - clean_docs, |
27 | | - open_docs, |
28 | | -) |
29 | 22 | from exasol.toolbox.nox._format import ( |
30 | 23 | _code_format, |
31 | 24 | _pyupgrade, |
32 | 25 | fix, |
33 | 26 | ) |
| 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 | +) |
34 | 52 | from exasol.toolbox.nox._lint import ( |
35 | 53 | _pylint, |
36 | 54 | _type_check, |
37 | 55 | lint, |
38 | 56 | type_check, |
39 | 57 | ) |
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 | +) |
41 | 63 | from exasol.toolbox.nox._release import prepare_release |
42 | 64 | from exasol.toolbox.nox._shared import ( |
43 | 65 | Mode, |
44 | 66 | _context, |
45 | 67 | _version, |
46 | 68 | python_files, |
47 | 69 | ) |
48 | | -from exasol.toolbox.nox._test import ( |
49 | | - _coverage, |
50 | | - coverage, |
51 | | - integration_tests, |
52 | | - unit_tests, |
53 | | -) |
54 | | -from noxconfig import PROJECT_CONFIG |
55 | 70 |
|
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