secondmind-labs / trieste

A Bayesian optimization toolbox built on TensorFlow
Apache License 2.0
212 stars 42 forks source link

Various linting suggestions #807

Closed uri-granta closed 6 months ago

uri-granta commented 6 months ago

Related issue(s)/PRs:

Summary

Investigate pylint and apply some of its suggestions. Also try running ruff.

The main thing holding us back from adopting pylint in CI is speed: running it on the codebase takes over a minute, compared to 3 seconds for flake8. If this PR exposes any concerning gaps then we could investigate whether there are any flake8 plugins that would cover them.

Ruff meanwhile is very fast but seems to catch less than flake8, so there is no incentive to switch.

Fully backwards compatible: yes

PR checklist