Configuration files should follow official standards, have up-to-date tool settings, and appropriate dependency constraints. This ensures consistent behavior across environments and compatibility with the project's requirements.
Configuration files should follow official standards, have up-to-date tool settings, and appropriate dependency constraints. This ensures consistent behavior across environments and compatibility with the project’s requirements.
For pyproject.toml:
[tool.ruff]
target-version = 'py39' # Should match minimum supported Python version
# Option 1: Version constraints with conditions
"sqlalchemy>=2.0,<3.0; python_version < '3.13'"
# Option 2: Simpler constraints when appropriate
"sqlalchemy>=2.0,<3.0"
Regular audits of configuration files should be performed when upgrading dependencies or changing supported Python versions to ensure configurations remain correct and optimal.
Enter the URL of a public GitHub repository