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

Added a script which raises issues if a feedstock has lint. #132

Merged
merged 1 commit into from
May 11, 2016

Conversation

pelson
Copy link
Member

@pelson pelson commented May 11, 2016

I'm not going to pretend I'm proud of the code, but this is what I cobbled together to run linting on all feedstocks and it may prove useful for other purposes.

@pelson pelson merged commit 5033240 into conda-forge:master May 11, 2016
@pelson pelson deleted the issue_for_lint branch May 11, 2016 18:26
regexp = re.compile(args.regexp)
randomised_feedstocks = [feedstock for feedstock in feedstocks.cloned_feedstocks(feedstocks_dir)
if regexp.match(feedstock.package)]
random.shuffle(randomised_feedstocks)
Copy link
Member

Choose a reason for hiding this comment

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

Why did you randomize this?

Copy link
Member Author

Choose a reason for hiding this comment

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

At one point I had a limit parameter which only did the first N feedstocks. I didn't want aardvark-feedstock to be better represented than zebra-feedstock 😉

Copy link
Member

Choose a reason for hiding this comment

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

Ah that makes a lot of sense. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants