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

bears/general: Add RegexLintBear #2934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bkhanale
Copy link
Member

Closes #1532

For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    individually.
    It is not sufficient to have "fixup commits" on your PR,
    our bot will still report the issues for the previous commit.) You will
    likely receive a lot of bot comments and build failures if coala does not
    pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

@bkhanale bkhanale force-pushed the regexlintbear branch 2 times, most recently from b03ce82 to 89a8ff1 Compare July 21, 2019 10:10
Copy link
Member

@abhishalya abhishalya left a comment

Choose a reason for hiding this comment

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

See the comments.

bears/general/RegexLintBear.py Outdated Show resolved Hide resolved
import re

from queue import Queue
from sarge import run, Capture
Copy link
Member

Choose a reason for hiding this comment

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

sarge is coala dependency?

Afaik, sarge comes from package_manager, if you are using it directly here, you'll need to add it to requirements.txt.
Maybe you can confirm this from @jayvdb

Copy link
Member Author

@bkhanale bkhanale Jul 21, 2019

Choose a reason for hiding this comment

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

I think I'm not very sure about this since we might just create a conflict if the versions mismatch later on.

Copy link
Member

Choose a reason for hiding this comment

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

Add the PipRequirement , but we have some magic piece of code somewhere in .ci/generate_* which excludes dependencies which are also provided by our own downstream. e.g. this is used for requests which is provided by coala

Copy link
Member Author

Choose a reason for hiding this comment

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

@jayvdb About this, I wasn't sure about the version to include since on package_manager we install from hg+https://bitbucket.org/jayvdb/sarge@win-reg-lookup#egg=sarge. Will it break stuff?

bears/general/RegexLintBear.py Outdated Show resolved Hide resolved
tests/general/RegexLintBearTest.py Show resolved Hide resolved
@abhishalya
Copy link
Member

Restarted few jobs, there was a timeout.

@abhishalya
Copy link
Member

@sangamcse @kriti21 You guys can also have a look.

import re

from queue import Queue
from sarge import run, Capture
Copy link
Member

Choose a reason for hiding this comment

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

Add the PipRequirement , but we have some magic piece of code somewhere in .ci/generate_* which excludes dependencies which are also provided by our own downstream. e.g. this is used for requests which is provided by coala

bears/general/RegexLintBear.py Outdated Show resolved Hide resolved
tests/general/RegexLintBearTest.py Outdated Show resolved Hide resolved
tests/general/RegexLintBearTest.py Show resolved Hide resolved
@bkhanale bkhanale force-pushed the regexlintbear branch 2 times, most recently from d6e6daa to 49cdf5a Compare August 23, 2019 07:31
bears/general/RegexLintBear.py Outdated Show resolved Hide resolved
bears/general/RegexLintBear.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Regex linter
4 participants