Lund-Observatory-Teaching / lundpython

2 stars 0 forks source link

Update tools used #91

Closed AlinderS closed 2 months ago

AlinderS commented 3 months ago

Replace black with the Ruff linter. Remove py-heat-magic as it has not been updated in several years and I was unable to install it on an updated system. Update the format of ruff.toml to the modern standard. Change the Ruff rule selecting from "ALL" to a select group. This is because the code contains multiple deliberately bad or inconsistent examples as well as examples of code that is more explicit than compact. Putting up exceptions for these examples would be distracting in the presentations and would be too much work to maintain as the rules are frequently updated.

Update all pre-commit hooks to latest versions.

Fix some issues found by the newer versions of linters and formatters. Primarily instances of B007 but also one instance of UP034. Fix some typos discovered by the new version of codespell.