qubvel / segmentation_models.pytorch

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.
https://smp.readthedocs.io/
MIT License
9.1k stars 1.62k forks source link

Add Ruff for formatting and linting #877

Closed qubvel closed 1 month ago

Borda commented 1 month ago

@qubvel, was linting/pre-commit removed here on purpose? as Ruff is commonly used as hok with-in pre-commit linting :flamingo:

qubvel commented 1 month ago

Hi @Borda, I just decided that it's simpler for one to execute make fixup instead of installing and enabling precommit hooks. On the other hand make precommit could also be useful 🤔