@classmethod<EOL><INDENT>def from_files(<EOL>cls,<EOL>pipfile_path: str = None,<EOL>pipfile_lock_path: str = None,<EOL>*,<EOL>runtime_environment: RuntimeEnvironment = None,<EOL>without_pipfile_lock: bool = False,<EOL>):<DEDENT>
with open(pipfile_path or "<STR_LIT>", "<STR_LIT:r>") as pipfile_file:<EOL><INDENT>pipfile = Pipfile.from_string(pipfile_file.read())<EOL><DEDENT>pipfile_lock = None<EOL>if not without_pipfile_lock:<EOL><INDENT>with open(pipfile_lock_path or "<STR_LIT>", "<STR_LIT:r>") as pipfile_lock_file:<EOL><INDENT>pipfile_lock = PipfileLock.from_string(pipfile_lock_file.read(), pipfile)<EOL><DEDENT><DEDENT>if runtime_environment:<EOL><INDENT>return cls(pipfile, pipfile_lock, runtime_environment=runtime_environment)<EOL><DEDENT>return cls(pipfile, pipfile_lock)<EOL>
Create project from Pipfile and Pipfile.lock files.