--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hmm I'd say bazel aspect, but let's see what +Lukács T. Berki and +Dmitry Lomov have to say.
On Thu, Nov 16, 2017 at 3:51 AM Hyrum Wright <hwr...@duolingo.com> wrote:
I'd like to integrate pylint with my Bazel workflow.--First, I'm interested to hear if anybody has already done so, and if so, how they did it.If I'm the pioneer in this space, I'm interested in knowing how best to run pylint, either as an analysis during the normal build, or in some separate step. The core problem, as I see it, is that because Bazel constructs the output python tree in a sandbox, and pylint needs all of those dependencies and paths in place to function correctly, it needs Bazel to tell it where the sandbox is and what the correct PYTHONPATH to use is. Where's the right place to get that information from Bazel?-Hyrum
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9G%3DuuuU8088z2BOVuTvAK8%2B29VbC%3D-2rG93nB3bG2vy10g%40mail.gmail.com.
Agreed. I'm not sure if we expose enough information about Python to Skylark to be able to express "give me all the Python source files, the interpreter and tell me what PYTHONPATH is", but if we don't, we should.
I agree that information would be useful. Anything I can do to get us there?
On Fri, Nov 17, 2017 at 4:23 AM, Lukács T. Berki <lbe...@google.com> wrote:
Agreed. I'm not sure if we expose enough information about Python to Skylark to be able to express "give me all the Python source files, the interpreter and tell me what PYTHONPATH is", but if we don't, we should.
On 17 November 2017 at 09:13, 'Marcel Hlopko' via bazel-discuss <bazel-...@googlegroups.com> wrote:
Hmm I'd say bazel aspect, but let's see what +Lukács T. Berki and +Dmitry Lomov have to say.
On Thu, Nov 16, 2017 at 3:51 AM Hyrum Wright <hwr...@duolingo.com> wrote:
I'd like to integrate pylint with my Bazel workflow.--First, I'm interested to hear if anybody has already done so, and if so, how they did it.If I'm the pioneer in this space, I'm interested in knowing how best to run pylint, either as an analysis during the normal build, or in some separate step. The core problem, as I see it, is that because Bazel constructs the output python tree in a sandbox, and pylint needs all of those dependencies and paths in place to function correctly, it needs Bazel to tell it where the sandbox is and what the correct PYTHONPATH to use is. Where's the right place to get that information from Bazel?-Hyrum
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9G%3DuuuU8088z2BOVuTvAK8%2B29VbC%3D-2rG93nB3bG2vy10g%40mail.gmail.com.
--Lukács T. Berki | Software Engineer | lbe...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
I guess just trying it out and letting us know what's missing. Python rules especially are a bit neglected, and we don't have many free cycles to improve them. Maybe +Yilei Yang has more experience?
On Fri, Nov 17, 2017 at 3:37 PM Hyrum Wright <hwr...@duolingo.com> wrote:
I agree that information would be useful. Anything I can do to get us there?
On Fri, Nov 17, 2017 at 4:23 AM, Lukács T. Berki <lbe...@google.com> wrote:
Agreed. I'm not sure if we expose enough information about Python to Skylark to be able to express "give me all the Python source files, the interpreter and tell me what PYTHONPATH is", but if we don't, we should.
On 17 November 2017 at 09:13, 'Marcel Hlopko' via bazel-discuss <bazel-discuss@googlegroups.com> wrote:
Hmm I'd say bazel aspect, but let's see what +Lukács T. Berki and +Dmitry Lomov have to say.
On Thu, Nov 16, 2017 at 3:51 AM Hyrum Wright <hwr...@duolingo.com> wrote:
I'd like to integrate pylint with my Bazel workflow.--First, I'm interested to hear if anybody has already done so, and if so, how they did it.If I'm the pioneer in this space, I'm interested in knowing how best to run pylint, either as an analysis during the normal build, or in some separate step. The core problem, as I see it, is that because Bazel constructs the output python tree in a sandbox, and pylint needs all of those dependencies and paths in place to function correctly, it needs Bazel to tell it where the sandbox is and what the correct PYTHONPATH to use is. Where's the right place to get that information from Bazel?-Hyrum
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9G%3DuuuU8088z2BOVuTvAK8%2B29VbC%3D-2rG93nB3bG2vy10g%40mail.gmail.com.
--Lukács T. Berki | Software Engineer | lbe...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
Yep -- if there is something you need, we can make that happen (except if proves to be too much work, but I doubt that's the case -- our Python rules are simple enough)
On 20 November 2017 at 09:21, Marcel Hlopko <hlo...@google.com> wrote:
I guess just trying it out and letting us know what's missing. Python rules especially are a bit neglected, and we don't have many free cycles to improve them. Maybe +Yilei Yang has more experience?
On Fri, Nov 17, 2017 at 3:37 PM Hyrum Wright <hwr...@duolingo.com> wrote:
I agree that information would be useful. Anything I can do to get us there?
On Fri, Nov 17, 2017 at 4:23 AM, Lukács T. Berki <lbe...@google.com> wrote:
Agreed. I'm not sure if we expose enough information about Python to Skylark to be able to express "give me all the Python source files, the interpreter and tell me what PYTHONPATH is", but if we don't, we should.
On 17 November 2017 at 09:13, 'Marcel Hlopko' via bazel-discuss <bazel-...@googlegroups.com> wrote:
Hmm I'd say bazel aspect, but let's see what +Lukács T. Berki and +Dmitry Lomov have to say.
On Thu, Nov 16, 2017 at 3:51 AM Hyrum Wright <hwr...@duolingo.com> wrote:
I'd like to integrate pylint with my Bazel workflow.--First, I'm interested to hear if anybody has already done so, and if so, how they did it.If I'm the pioneer in this space, I'm interested in knowing how best to run pylint, either as an analysis during the normal build, or in some separate step. The core problem, as I see it, is that because Bazel constructs the output python tree in a sandbox, and pylint needs all of those dependencies and paths in place to function correctly, it needs Bazel to tell it where the sandbox is and what the correct PYTHONPATH to use is. Where's the right place to get that information from Bazel?-Hyrum
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9G%3DuuuU8088z2BOVuTvAK8%2B29VbC%3D-2rG93nB3bG2vy10g%40mail.gmail.com.
--Lukács T. Berki | Software Engineer | lbe...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
I believe if you run pylint on the python file in the runfiles tree, that should be enough?I'm not sure if you can get the path in skylark though. Another approach is to put the integration point outside bazel, since you should be able to calculate the path of the .py file in the runfiles tree, based on which rule the .py file belongs to.
On Mon, Nov 20, 2017 at 3:53 AM Lukács T. Berki <lbe...@google.com> wrote:
Yep -- if there is something you need, we can make that happen (except if proves to be too much work, but I doubt that's the case -- our Python rules are simple enough)
On 20 November 2017 at 09:21, Marcel Hlopko <hlo...@google.com> wrote:
I guess just trying it out and letting us know what's missing. Python rules especially are a bit neglected, and we don't have many free cycles to improve them. Maybe +Yilei Yang has more experience?
On Fri, Nov 17, 2017 at 3:37 PM Hyrum Wright <hwr...@duolingo.com> wrote:
I agree that information would be useful. Anything I can do to get us there?
On Fri, Nov 17, 2017 at 4:23 AM, Lukács T. Berki <lbe...@google.com> wrote:
Agreed. I'm not sure if we expose enough information about Python to Skylark to be able to express "give me all the Python source files, the interpreter and tell me what PYTHONPATH is", but if we don't, we should.
On 17 November 2017 at 09:13, 'Marcel Hlopko' via bazel-discuss <bazel-discuss@googlegroups.com> wrote:
Hmm I'd say bazel aspect, but let's see what +Lukács T. Berki and +Dmitry Lomov have to say.
On Thu, Nov 16, 2017 at 3:51 AM Hyrum Wright <hwr...@duolingo.com> wrote:
I'd like to integrate pylint with my Bazel workflow.--First, I'm interested to hear if anybody has already done so, and if so, how they did it.If I'm the pioneer in this space, I'm interested in knowing how best to run pylint, either as an analysis during the normal build, or in some separate step. The core problem, as I see it, is that because Bazel constructs the output python tree in a sandbox, and pylint needs all of those dependencies and paths in place to function correctly, it needs Bazel to tell it where the sandbox is and what the correct PYTHONPATH to use is. Where's the right place to get that information from Bazel?-Hyrum
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALmYJEUvUJ5HbH0nBoiwJLFPEiCEQOgj8WM%3DAJDg2gPW7K%3Dq4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9G%3DuuuU8088z2BOVuTvAK8%2B29VbC%3D-2rG93nB3bG2vy10g%40mail.gmail.com.
--Lukács T. Berki | Software Engineer | lbe...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
----Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891