pytest Fixtures, Mocks, and monkeypatch in Python
Build clearer tests with fixtures, temporary files, and monkeypatch without testing mocks instead of behavior.
Clean code, automated testing, and design patterns
Build clearer tests with fixtures, temporary files, and monkeypatch without testing mocks instead of behavior.
Use Ruff for linting, import sorting, and formatting with a small configuration and predictable CI checks.
Set up a Python project with uv, a virtual environment, pyproject.toml, and a reproducible lockfile while understanding what changes from pip.
Build lean Python documentation with Sphinx, autodoc, docstrings, and type hints, then generate HTML and automate publishing without needless complexity.
Use Hypothesis with pytest to generate inputs, check invariants, shrink failures, and uncover edge cases that hand-written examples miss.
Structure pyproject.toml for applications and libraries, separate build and runtime requirements, declare dependencies, and configure tools safely.
Build a Python CI/CD pipeline with multi-version tests, linting, type checks, coverage, packaging, caching, artifacts, and secure defaults.
A practical path from a src-layout project to tested wheel and sdist files, a TestPyPI rehearsal, and secure automated PyPI releases.
Master Python debugging with this complete guide. Learn to use pdb, breakpoint(), VS Code and PyCharm debuggers, efficient logging, and techniques to find bugs faster.
Master Python Type Hints: complete guide to static typing, from basic syntax to advanced features like Generics, Protocols, and TypeVar with practical examples.
Complete PEP 8 guide: learn Python style conventions for naming, imports, indentation, and best practices to write clean, professional Python code.
Master Python unittest to write robust unit tests. Learn TestCase, assertions, mocks, fixtures, and best practices for professional testing.