File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ pub(crate) async fn venv(
57
57
exclude_newer : Option < ExcludeNewer > ,
58
58
concurrency : Concurrency ,
59
59
native_tls : bool ,
60
+ no_config : bool ,
60
61
cache : & Cache ,
61
62
printer : Printer ,
62
63
relocatable : bool ,
@@ -78,6 +79,7 @@ pub(crate) async fn venv(
78
79
exclude_newer,
79
80
concurrency,
80
81
native_tls,
82
+ no_config,
81
83
cache,
82
84
printer,
83
85
relocatable,
@@ -130,6 +132,7 @@ async fn venv_impl(
130
132
exclude_newer : Option < ExcludeNewer > ,
131
133
concurrency : Concurrency ,
132
134
native_tls : bool ,
135
+ no_config : bool ,
133
136
cache : & Cache ,
134
137
printer : Printer ,
135
138
relocatable : bool ,
@@ -145,8 +148,7 @@ async fn venv_impl(
145
148
146
149
// (2) Request from `.python-version`
147
150
if interpreter_request. is_none ( ) {
148
- // TODO(zanieb): Support `--no-config` here
149
- interpreter_request = PythonVersionFile :: discover ( & * CWD , false , false )
151
+ interpreter_request = PythonVersionFile :: discover ( & * CWD , no_config, false )
150
152
. await
151
153
. into_diagnostic ( ) ?
152
154
. and_then ( PythonVersionFile :: into_version) ;
Original file line number Diff line number Diff line change @@ -681,6 +681,7 @@ async fn run(cli: Cli) -> Result<ExitStatus> {
681
681
args. settings . exclude_newer ,
682
682
globals. concurrency ,
683
683
globals. native_tls ,
684
+ cli. no_config ,
684
685
& cache,
685
686
printer,
686
687
args. relocatable ,
You can’t perform that action at this time.
0 commit comments