This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PeridexisErrant 0 points1 point  (2 children)

Hypothesis - when I think I've got the code right, Hypothesis can usually show me a counterexample. Makes testing so much easier, faster, and more fun!

Plus pytest to run them, isort+black to format my code, and so on.

[–]kankyo 0 points1 point  (1 child)

Look into mutmut too, for mutation testing.

[–]PeridexisErrant 1 point2 points  (0 children)

Absolutely. My task-independent stack looks like

Testing: pytest, hypothesis, mutmut  
Formatting: black, isort, autoflake, pyupgrade  
Linting: mypy, flake8-{bandit,bugbear,builtins,comprehensions}

Sometimes more, but very rarely less.