@@ -73,20 +73,19 @@ def set_lock_version(self, version: str) -> None:
7373
7474 for member in workspace_members :
7575 for path in glob .glob (member , recursive = True ):
76- if not matches_exclude (path , excluded_workspace_members ):
77- cargo_file = Path (path ) / "Cargo.toml"
78- cargo_toml_content = tomlkit .parse (cargo_file .read_text ())
79- try :
80- version_workspace = cargo_toml_content ["package" ][
81- "version"
82- ][ # type: ignore[index]
83- "workspace"
84- ]
85- if version_workspace is True :
86- package_name = cargo_toml_content ["package" ]["name" ] # type: ignore[index]
87- members_inheriting .append (package_name )
88- except tomlkit .exceptions .NonExistentKey :
89- continue
76+ if matches_exclude (path , excluded_workspace_members ):
77+ continue
78+ cargo_file = Path (path ) / "Cargo.toml"
79+ cargo_toml_content = tomlkit .parse (cargo_file .read_text ())
80+ try :
81+ version_workspace = cargo_toml_content ["package" ]["version" ][ # type: ignore[index]
82+ "workspace"
83+ ]
84+ if version_workspace is True :
85+ package_name = cargo_toml_content ["package" ]["name" ] # type: ignore[index]
86+ members_inheriting .append (package_name )
87+ except tomlkit .exceptions .NonExistentKey :
88+ continue
9089
9190 for i , package in enumerate (packages ):
9291 if package ["name" ] in members_inheriting :
0 commit comments