gocardless/airflow-dbt

Use --no-use-colors in dbt_hook.py

gbonazzoli opened this issue · 1 comments

My little advice is to to use the switch --no-use-colors in dbt_hook.py

    def run_cli(self, *command):
        """
        Run the dbt cli

        :param command: The dbt command to run
        :type command: str
        """

        dbt_cmd = [self.dbt_bin, "--no-use-colors", *command]

        if self.profiles_dir is not None:
            dbt_cmd.extend(['--profiles-dir', self.profiles_dir])

The log will be cleaner and not full of ANSI escape chars.

Hey, I added this option to my PR since I think it's an interesting one