You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long ago I added https://github.com/XENONnT/straxen/blob/master/.github/workflows/code_style.yml, which is a bit... flaky. For starters, it has to modify the source code to run at all (using pre_pyflakes.sh) at that time I was looking for a slightly nicer tool, but did not find any. This pre-commit tool is in my view a nice tool that automatically fixes tedious code style formalities, decreasing time and frustration on both reviewer and developer side.
You can add it as an automation super easily following their documentation. Just to give you an idea:
git clone https://github.com/XENONnT/straxen
cd straxen
pip install pre-commit
pre-commit sample-config >>.pre-commit-config.yaml
pre-commit run --all-files
git diff
rm .github/scripts/pre_pyflakes.sh .github/workflows/code_style.yml # get rid of the home grown tools
Of course, totally up to you if it's useful 😉.
The text was updated successfully, but these errors were encountered:
Hi next-gen straxen maintainers!
Long ago I added https://github.com/XENONnT/straxen/blob/master/.github/workflows/code_style.yml, which is a bit... flaky. For starters, it has to modify the source code to run at all (using
pre_pyflakes.sh
) at that time I was looking for a slightly nicer tool, but did not find any. Thispre-commit
tool is in my view a nice tool that automatically fixes tedious code style formalities, decreasing time and frustration on both reviewer and developer side.You can add it as an automation super easily following their documentation. Just to give you an idea:
Of course, totally up to you if it's useful 😉.
The text was updated successfully, but these errors were encountered: