Loading topic
pip and virtual environments, and read a requirements.txt file. Every check later in this tutorial depends on one fact: which version of each library your code runs against. Without it, you cannot tell whether an AI suggestion is wrong3 min readpip in a virtual environment. Earlier chapters covered the failure modes and why generated code drifts from your installed version. Here you build the cheapest check: ask the interpreter whether a name exists and wheth2 min readpytest tests, read a traceback, and use pip. Earlier chapters showed how to check that a symbol exists and how to surface deprecation warnings. Those checks are static. A test goes further because it runs the generated code against the library you have 3 min readpip install for a package that does not exist. It can also suggest one whose name is close to a real package. This chapter assumes you can run pip, read a requirements.txt, and use Python's standard library. Earlier chapters covered symbols that do not exist. This one 3 min readpytest, and edit a CI configuration file. It also assumes you know the checks from earlier chapters: introspection, versioned docs, type checkers, deprecation warnings, tests, and dependency verification. Here you combine them into one routin3 min readpytest. The aim is to show where those checks stop, so a green build3 min read