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
After #103, we want to implement Nox with some very simple tasks to keep building on top of it whenever needed in the future.
The goal is to have the framework set to enforce code styling both on commits and CI. However, won't turn that on yet, since current codebase does not comply with all the linting rules (task [tbd] is meant to do that).
Acceptance criteria
On commit by devs, pre-commit hook runs nox sessions for formatting and linting
On Push on protected branches, as well as on PRs, CI runs nox sessions for formatting and linting
It is expected that these checks fail so:
On commit, only staged code should be checked.
CI runs don't block PRs now (until we fix all issues)
Can we please just do pre-merge formatting and linting checks instead of pre-commit? Oftentimes you just want to add a WIP commit and these hooks slow down development.
I don't mind which path we chose tbh. I'd say we could:
Have pre-commit hooks but use --no-verify on commits to avoid getting blocked on WIP commits
Have pre-commit setup with warning rather than error (not block commits)
Not having pre-commits at all
I'd say that for development pre-commits are better due to fail fast philosophy. Still, it might go against some of our workflows as @obasilakis described so we could keep it flexible with options 1 and 2
Description
After #103, we want to implement Nox with some very simple tasks to keep building on top of it whenever needed in the future.
The goal is to have the framework set to enforce code styling both on commits and CI. However, won't turn that on yet, since current codebase does not comply with all the linting rules (task [tbd] is meant to do that).
Acceptance criteria
It is expected that these checks fail so:
Related issues
The text was updated successfully, but these errors were encountered: