File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ from __future__ import annotations
12import tomlkit
23import sys
34from pathlib import Path
1415@nox .session (name = "dependencies-check" , python = False )
1516def dependency_check (session : Session ) -> None :
1617 content = Path (PROJECT_CONFIG .root , "pyproject.toml" ).read_text ()
17- dependencies = dependencies = Dependencies .parse (content )
18+ dependencies = Dependencies .parse (content )
1819 console = rich .console .Console ()
1920 if illegal := dependencies .illegal :
2021 report_illegal (illegal , console )
@@ -32,6 +33,7 @@ def _source_filter(version) -> bool:
3233 specifier in version
3334 for specifier in ILLEGAL_SPECIFIERS
3435 )
36+
3537 def _extract_dependencies (section ) -> List [str ]:
3638 dependencies = []
3739 for name , version in section .items ():
Original file line number Diff line number Diff line change 5151 integration_tests ,
5252 unit_tests ,
5353)
54- from exasol .toolbox .nox ._dependencies_check import (
54+ from exasol .toolbox .nox ._dependencies import (
5555 dependency_check
5656)
5757from noxconfig import PROJECT_CONFIG
Original file line number Diff line number Diff line change 11import pytest
22import rich .console
33
4- from exasol .toolbox .nox ._dependencies_check import Dependencies , report_illegal
4+ from exasol .toolbox .nox ._dependencies import Dependencies , report_illegal
55
66
77@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments