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

Fix Pylint to consider transitive third-party dependencies #14289

Merged

Conversation

Eric-Arellano
Copy link
Contributor

Same as #13918, but for third-party deps. As with first-party code, Pylint doesn't complain if transitive deps are missing, but it is less exhaustive than normal.

[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]

[ci skip-rust]
@Eric-Arellano
Copy link
Contributor Author

Beyond correctness for PYlint, another motivation is to remove direct_deps_only from pex_from_targets.py. That will make that file a lot simpler.

Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

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

Nice.

@Eric-Arellano Eric-Arellano enabled auto-merge (squash) January 28, 2022 14:05
@Eric-Arellano Eric-Arellano merged commit 4356f46 into pantsbuild:main Jan 28, 2022
@Eric-Arellano Eric-Arellano deleted the pylint-transitive-3rdparty branch January 28, 2022 14:14
@@ -222,12 +226,14 @@ def test_includes_transitive_dependencies(rule_runner: RuleRunner) -> None:
{
"BUILD": dedent(
"""\
python_requirement(name='transitive_req', requirements=['fake'])
python_requirement(name='transitive_req', requirements=['freezegun'])
Copy link
Member

Choose a reason for hiding this comment

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

freeze

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahahah credit to @asherf for teaching me about freezegun

Copy link
Member

Choose a reason for hiding this comment

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

Oh hey, that's actually very useful. We have tests that call those functions and are currently passing only because they are cached. 🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants