TRAIS-Lab / dattri

`dattri` is a PyTorch library for developing, benchmarking, and deploying efficient data attribution algorithms.
https://trais-lab.github.io/dattri/
MIT License
27 stars 8 forks source link

switch {pycodestlye, pydocstyle, pylint} to ruff #7

Closed jiaqima closed 5 months ago

jiaqima commented 5 months ago

pycodestyle was archived and suggested switching to ruff, which integrates various linters. This PR removes pycodestlye, pydocstyle, and pylint and adds ruff in github action workflow. New lint errors in existing python files are also fixed.

Note: We could selectively disable some unnecessarily strict lint rules as we further develop this project. To disable lint rules for all python files, add corresponding codes to ignore under [tool.ruff.lint] in pyproject.toml. To disable lint rules for test files only, add corresponding codes to "**/test/**/*.py" under [tool.ruff.lint.extend-per-file-ignores].

jiaqima commented 5 months ago

@TheaperDeng sorry this PR will cause some conflicts with #5.