Exclude analyses from compilation.

The problem I’m having

I am trying to exclude all files inside analyses directory in dbt 1.7.0

The context of why I’m trying to do this

I need to avoid compiling analyses directory each time, I want to have control over this.

What I’ve already tried

The closest way to what I want is:
{{
config(enabled=False)
}}
But I am trying to avoid writing this inside each file.
I was trying to achieve this by writing inside dbt_project.yml this lines, but they doesn’t work:
analyses:
+enabled: false
I know I should be able to do this inside analyses .yml file, but i would have to write each analyse name inside.
I am open to any new ideas.

does --exclude resource_type:analysis or --exclude-resource-type analysis work for what you’re trying to do?

Note: @Mike Stanley originally posted this reply in Slack. It might not have transferred perfectly.

Not really, forgot to add that I want to have this build inside dbt files/metadata.