Add any of the following content to your `pyproject.toml` file to enable that configuration. ``` vim pyproject.toml ``` Don't forget to commit the changes after you are done: ``` git commit pyproject.toml -m "Project configured." ``` # Mypy ```toml [tool.mypy] strict = true ``` If you set up mypy as a dependency, you can test the setup by running it against your project: ``` poetry run mypy . ``` # Ruff ```toml [tool.ruff] select = [ "E", # pycodestyle errors (default) "W", # pycodestyle warnings (default) "B", # flake8-bugbear "C", # flake8-comprehensions "Q", # flake8-quotes "I", # isort "N", # pep8-naming "F", # pyflakes "RUF", # ruff-specific rules ] ignore = [ "E501", # line too long, handled by black ] ``` If you set up ruff as a dependency, you can test the setup by manually running it against your project: ``` poetry run ruff check . ``` # Black The whole idea of using black normally is that it doesn't need any configuration. If your project will need to build in multiple versions of Python, add the following to your `pyproject.toml` to configure black to test for all those versions: ```toml [tool.black] target-version = ["py37", "py38", "py39", "py310"] ```