Skip to content

Conversation

@CAM-Gerlach
Copy link
Contributor

This is a minor refinement to the default license/legal-related globs included in #138 , adding extension support for COPYING and NOTICE as well (since the former is often encountered with extensions, e.g. .txt, .md, .rst; and the Apache license allows .txt as well as an extension), and also adds AUTHORS* as licenses have varying attribution requirements and they are sometimes included by reference in the licenses themselves as well. It also adds them in the docs (sorting the list alphabetically there) and adds some additional test filenames to cover these cases with varied extensions in the tests.

'LICENSE', 'LICENSE.txt', 'LICENCE', 'LICENSE.txt', 'COPYING', 'NOTICE'
('LICENSE', 'LICENSE.txt', 'LICENCE', 'LICENSE.txt', 'COPYING',
'COPYTING.md', 'NOTICE', 'NOTICE.rst', 'AUTHORS', 'AUTHORS.txt')
}
Copy link
Member

@benoit-pierre benoit-pierre Sep 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just changed the declaration from a set of strings to a set containing only one tuple of strings.

Copy link
Contributor Author

@CAM-Gerlach CAM-Gerlach Sep 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, stupid mistake; thanks for the catch. The other place I changed it was an implicit tuple, and I didn't parse the braces properly at first glance so I didn't see it was already a set. Fixed.

@agronholm
Copy link
Contributor

Thanks!

@CAM-Gerlach
Copy link
Contributor Author

Thanks @agronholm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants