Update pyproject.toml, including stricter linting rules
#571
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modernizes our
pyproject.tomlconfiguration and enables stricter linting rules to catch potential bugs and improve code quality.Changes to
pyproject.tomlsource,branch,show_missing, andfail_under=80thresholdpython_versionandcheck_untyped_defssettingspathlibfrom dev dependencies (standard library)Code Fixes
Fixed 27 linting errors across the codebase to comply with new stricter rules:
stacklevelto warningsstrict=parameter tozip()callsisinstance()calls to use|syntax (Python 3.10+)Pre-commit Configuration
exclude: ^docs/to ruff pre-commit hook to avoid applying strict rules to example notebooksTesting
📚 Documentation preview 📚: https://causalpy--571.org.readthedocs.build/en/571/