witty-crayon-22786
07/24/2020, 4:45 AM@rules
when they think that they are going to need them.hundreds-father-404
07/24/2020, 4:45 AMwitty-crayon-22786
07/24/2020, 4:47 AMsrc/python/pants/backend/python/lint/bandit/rules.py
156:def rules():
157- return [
158- bandit_lint,
159- bandit_lint_partition,
160- SubsystemRule(Bandit),
161- UnionRule(LintRequest, BanditRequest),
162- *download_pex_bin.rules(),
163- *determine_source_files.rules(),
164- *pex.rules(),
165- *python_native_code.rules(),
166- *strip_source_roots.rules(),
167- *subprocess_environment.rules(),
168- ]
witty-crayon-22786
07/24/2020, 4:47 AMwitty-crayon-22786
07/24/2020, 4:48 AMhundreds-father-404
07/24/2020, 4:50 AMexternal_tool.py
would re-export archive.py
so that no own needs to register it as a transitive dependencywitty-crayon-22786
07/24/2020, 4:51 AMaloof-angle-91616
07/24/2020, 5:40 AM@rule
could be assumed to be available to use from any other rulealoof-angle-91616
07/24/2020, 5:41 AMdef rules():
approach if we want to go that routealoof-angle-91616
07/24/2020, 5:43 AM@rule
annotation might be calling inspect.stack()
and generating an ast once per rule, as opposed to once per file. but i don't think that should be a concern as i would prefer to focus on making pantsd more reliable than import time improvements right now -- i'm working on a side project to improve python import time anywayhundreds-father-404
07/24/2020, 5:49 AMaloof-angle-91616
07/24/2020, 9:22 PMaloof-angle-91616
07/24/2020, 9:23 PM