Commit 204f4e3e authored by Adrian DC's avatar Adrian DC
Browse files

chore(setup): add tool header on autogenerated 'alias.gitconfig'

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent bfe07265
Loading
Loading
Loading
Loading
Loading
+12 −2
Changes for setup.py: 12 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -62,7 +62,15 @@ class SetupInstall(InstallCommand):
                  mode='w') as asset:

            # Configuration file header
            asset.write('[alias]\n')
            asset.writelines([
                f'{line}{SetupInstall.GIT_CONFIGURATION_SEPARATOR}' for line in [
                    '#####',
                    f'# {PROJECT_NAME}: Generated configuration maintained automatically',
                    '###',
                    '',
                    '[alias]',
                ]
            ])

            # Iterate through profiles files
            for root, _, _ in sorted(walk(SetupInstall.PROFILES)):
@@ -76,7 +84,9 @@ class SetupInstall(InstallCommand):
                            f'{line}{SetupInstall.GIT_CONFIGURATION_SEPARATOR}'
                            for line in [
                                '',
                                f'\t##### {PROJECT_NAME}: {root} #####',
                                '\t#####',
                                f'\t## {PROJECT_NAME}: {root}',
                                '\t###',
                            ]
                        ])