Validating Terraform config in local dev environment

Hello,

I want to manage the infrastructure with Terraform and Gitlab. All is working according to the documentation.
The issue is that when I update the terraform config file, I would like to test it before the changes are pushed and the CI is triggered.
Invoking init command locally fails because the backend is “http”.
I am able to test the changes locally if I comment out the backend clause.
Any other more elegant ways to handle this use case?

Thanks,
Liora