forked from Lucas-C/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support flexible years in licenses (Lucas-C#23)
The new flag `--use-current-year` allows automatically updating the year in copyright headers, using always the current year when inserting new ones and removing headers regardless of the years they contain.
- Loading branch information
1 parent
e079e43
commit 833fa5f
Showing
7 changed files
with
190 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/resources/module_with_badly_formatted_stale_year_range_in_license.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2015 -- 16 Teela O'Malley | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
||
import sys | ||
sys.stdout.write("FOO") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2015 Teela O'Malley | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
||
import sys | ||
sys.stdout.write("FOO") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2015-2016 Teela O'Malley | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
||
import sys | ||
sys.stdout.write("FOO") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (C) 2015-2017 Teela O'Malley | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
||
import sys | ||
sys.stdout.write("FOO") |