Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore licenses in hidden directories #399

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

beenje
Copy link
Contributor

@beenje beenje commented Oct 9, 2022

When searching for licenses, files in hidden directories (like .eggs/LICENSE) were excluded but not the directories under (.eggs/foo/)..

Don't just hope over hidden directories but remove them from the list of directories to search.

Fix #398

When searching for licenses, files in hidden directories (like .eggs/LICENSE) were
excluded but not the directories under (.eggs/foo/)..

Don't just hope over hidden directories but remove them from the list
of directories to search.

Fix conda#398
Co-authored-by: Marcelo Duarte Trevisani <marcelotrevisani@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2022

Codecov Report

Merging #399 (3282ee6) into main (9c3242e) will increase coverage by 0.69%.
The diff coverage is 92.82%.

@@            Coverage Diff             @@
##             main     #399      +/-   ##
==========================================
+ Coverage   91.30%   92.00%   +0.69%     
==========================================
  Files          17       16       -1     
  Lines        1576     1701     +125     
==========================================
+ Hits         1439     1565     +126     
+ Misses        137      136       -1     
Flag Coverage Δ
unittests 92.00% <92.82%> (+0.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
setup.py 0.00% <0.00%> (ø)
grayskull/base/github.py 72.83% <72.83%> (ø)
grayskull/license/discovery.py 94.81% <78.12%> (-2.33%) ⬇️
grayskull/strategy/abstract_strategy.py 83.33% <83.33%> (ø)
grayskull/__main__.py 95.60% <93.18%> (-2.55%) ⬇️
grayskull/base/factory.py 91.17% <93.33%> (+1.17%) ⬆️
grayskull/strategy/py_base.py 95.00% <95.00%> (ø)
grayskull/config.py 96.96% <96.96%> (ø)
grayskull/utils.py 98.12% <97.58%> (-1.88%) ⬇️
grayskull/strategy/pypi.py 97.68% <97.68%> (ø)
... and 7 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marcelotrevisani marcelotrevisani merged commit 1614275 into conda:main Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] grayskull detects too many licenses when using sdist or GitHub url
3 participants