Enhance code quality by integrating ruff and mypy with pre-commit. Add ruff for linting and mypy for type checking in the .pre-commit-config.yaml file. Ensure pre-commit is installed and configured to run these tools automatically on commit. Verify the configuration by running pre-commit run --all-files and ensure no linting or typing errors exist.
Enhance code quality by integrating
ruff
andmypy
withpre-commit
. Addruff
for linting andmypy
for type checking in the.pre-commit-config.yaml
file. Ensurepre-commit
is installed and configured to run these tools automatically on commit. Verify the configuration by runningpre-commit run --all-files
and ensure no linting or typing errors exist.