CircleCI: attempt to force pre-commit against base branch
@@ -98,7 +98,9 @@ description = run pre-commit to ensure the changes are valid against our linting
deps =
pre-commit
commands =
- pre-commit run
+ # FIXME: use `github.event.pull_request.base.sha` in `--from-ref` because if
+ # the base branch is different, this won't work as expected
+ pre-commit run --from-ref master --to-ref HEAD
[testenv:eslint]
whitelist_externals = npm
