Skip to content

Duplicates license in files containing # -*- coding: utf-8 -*- #39

@bedge

Description

@bedge

Subject says it all.

#!/usr/bin/env python

# Copyright (c) blah

# -*- coding: utf-8 -*-

# Copyright (c) blah

Used:
copyright-header --guess-extension --license-file LICENSE.txt --add-path . --output-dir .

Test case:

%> cat test.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

%> copyright-header --guess-extension --license-file LICENSE.txt --add-path . --output-dir .
SKIP ./LICENSE.txt; excluded
UPDATE ./test.py [output-dir ./.]

%> ls -lrt
total 8
-rw-r--r--+ 1 bedge admin 198 Nov  6 13:09 LICENSE.txt
-rw-r--r--+ 1 bedge admin 463 Nov  6 13:10 test.py

%> cat test.py
#!/usr/bin/env python

# Copyright (c) blah

# -*- coding: UTF-8 -*-

# Copyright (c) blah

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions