Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def inter_process_locked(name):
return process_lock.interprocess_locked(get_lock_file(name))
@fasteners.process_lock.interprocess_locked(str(reqwire.config.lockfile))
def extend_source_file(working_directory, # type: str
tag_name, # type: str
specifiers, # type: Iterable[str]
extension='.in', # type: str
index_url=None, # type: Optional[str]
extra_index_urls=None, # type: Optional[Set[str]]
lookup_index_urls=None, # type: Optional[Set[str]]
prereleases=False, # type: bool
resolve_canonical_names=True, # type: bool
resolve_versions=True, # type: bool
):
# type: (...) -> None
"""Adds requirements to an existing requirement source file.
Args:
working_directory: The parent directory of the source file.