By investing in publicly traded stock, you’re purchasing part ownership of the means of production and making profits off someone else’s labor. I don’t see how you can even justify owning small amounts of stocks when it contributes to such awful things on a massive scale.
I mean, if you're a leftist living in the west you're probably doing a million things that could be considered 'hypocritical'. While investing in stocks is less of a necessity than many of those things, I personally don't feel any way towards people who do it to reach financial security. If you're straight up investing in shit like Raytheon though, I'd say that's different.