@@ -17,8 +17,8 @@ use uv_cache::Cache;
1717use uv_cli:: ExternalCommand ;
1818use uv_client:: { BaseClientBuilder , Connectivity } ;
1919use uv_configuration:: {
20- Concurrency , DevMode , DevSpecification , EditableMode , ExtrasSpecification , InstallOptions ,
21- LowerBound , SourceStrategy ,
20+ Concurrency , DevSpecification , EditableMode , ExtrasSpecification , InstallOptions , LowerBound ,
21+ SourceStrategy ,
2222} ;
2323use uv_distribution:: LoweredRequirement ;
2424use uv_fs:: which:: is_executable;
@@ -68,7 +68,7 @@ pub(crate) async fn run(
6868 no_project : bool ,
6969 no_config : bool ,
7070 extras : ExtrasSpecification ,
71- dev : DevMode ,
71+ dev : DevSpecification ,
7272 editable : EditableMode ,
7373 python : Option < String > ,
7474 settings : ResolverInstallerSettings ,
@@ -336,11 +336,8 @@ pub(crate) async fn run(
336336 if !extras. is_empty ( ) {
337337 warn_user ! ( "Extras are not supported for Python scripts with inline metadata" ) ;
338338 }
339- if matches ! ( dev, DevMode :: Exclude ) {
340- warn_user ! ( "`--no-dev` is not supported for Python scripts with inline metadata" ) ;
341- }
342- if matches ! ( dev, DevMode :: Only ) {
343- warn_user ! ( "`--only-dev` is not supported for Python scripts with inline metadata" ) ;
339+ if let Some ( flag) = dev. as_flag ( ) {
340+ warn_user ! ( "{flag} is not supported for Python scripts with inline metadata" ) ;
344341 }
345342 if package. is_some ( ) {
346343 warn_user ! (
@@ -413,11 +410,8 @@ pub(crate) async fn run(
413410 if !extras. is_empty ( ) {
414411 warn_user ! ( "Extras have no effect when used alongside `--no-project`" ) ;
415412 }
416- if matches ! ( dev, DevMode :: Exclude ) {
417- warn_user ! ( "`--no-dev` has no effect when used alongside `--no-project`" ) ;
418- }
419- if matches ! ( dev, DevMode :: Only ) {
420- warn_user ! ( "`--only-dev` has no effect when used alongside `--no-project`" ) ;
413+ if let Some ( flag) = dev. as_flag ( ) {
414+ warn_user ! ( "{flag} has no effect when used alongside `--no-project`" ) ;
421415 }
422416 if locked {
423417 warn_user ! ( "`--locked` has no effect when used alongside `--no-project`" ) ;
@@ -433,11 +427,8 @@ pub(crate) async fn run(
433427 if !extras. is_empty ( ) {
434428 warn_user ! ( "Extras have no effect when used outside of a project" ) ;
435429 }
436- if matches ! ( dev, DevMode :: Exclude ) {
437- warn_user ! ( "`--no-dev` has no effect when used outside of a project" ) ;
438- }
439- if matches ! ( dev, DevMode :: Only ) {
440- warn_user ! ( "`--only-dev` has no effect when used outside of a project" ) ;
430+ if let Some ( flag) = dev. as_flag ( ) {
431+ warn_user ! ( "{flag} has no when used outside of a project" ) ;
441432 }
442433 if locked {
443434 warn_user ! ( "`--locked` has no effect when used outside of a project" ) ;
@@ -590,7 +581,7 @@ pub(crate) async fn run(
590581 & venv,
591582 result. lock ( ) ,
592583 & extras,
593- & DevSpecification :: from ( dev) ,
584+ & dev,
594585 editable,
595586 install_options,
596587 Modifications :: Sufficient ,
0 commit comments