purple-plastic-57801
06/05/2023, 4:56 PMpylint path/to/somewhere
works... pants lint --only=pylint path/to/somewhere ::
fails.
In particular, this is about generated protobuf files *_pb2.py[i]. I know the config file is being picked up as if I modify the summary.. it no longer shows the summary when run with pants. 🤔
I do have pants ignoring the generated proto files too.gorgeous-winter-99296
06/05/2023, 5:12 PMpath/to/somewhere
and ::
means they're two separate targets.purple-plastic-57801
06/05/2023, 5:12 PMpurple-plastic-57801
06/05/2023, 5:13 PMpurple-plastic-57801
06/05/2023, 5:13 PMgorgeous-winter-99296
06/05/2023, 5:14 PMpurple-plastic-57801
06/05/2023, 5:15 PME0611: No name 'StationInformation' in module 'blah.messages.v1.observation_pb2' (no-name-in-module)
purple-plastic-57801
06/05/2023, 5:15 PMgorgeous-winter-99296
06/05/2023, 5:17 PMpurple-plastic-57801
06/05/2023, 5:27 PMpurple-plastic-57801
06/05/2023, 5:27 PMgorgeous-winter-99296
06/05/2023, 5:45 PMprotobuf-pylint
but that doesn't work with protoc 3.20, so it seems like pyi
files is the goto. But pylint does not seem to pick them up, and doesn't support picking them up as I understand it. So... are you using the same protoc as with Pants, and the same pylint in/out?purple-plastic-57801
06/05/2023, 5:47 PMgorgeous-winter-99296
06/05/2023, 5:49 PMpants.toml
([protoc].version
) it'd be 3.20.1 for stable Pants.purple-plastic-57801
06/05/2023, 5:50 PM3.19.4
is what we are running.purple-plastic-57801
06/05/2023, 5:50 PMgorgeous-winter-99296
06/05/2023, 5:51 PMpylint-protobuf
plugin, if so.gorgeous-winter-99296
06/05/2023, 5:55 PM[pylint]
extra_requirements = [pylint-protobuf]
lockfile = "locks/pylint.lock"
[protoc]
version = "3.11.4"
known_versions = [
"3.11.4|linux_arm64 |f24c9fa1fc4a7770b8a5da66e515cb8a638d086ad2afa633abb97137c5f029a8|1481946",
"3.11.4|linux_x86_64|6d0f18cd84b918c7b3edd0203e75569e0c8caecb1367bbbe409b45e28514f5be|1591191",
"3.11.4|macos_arm64 |8c6af11e1058efe953830ecb38324c0e0fd2fb67df3891896d138c535932e7db|2482119",
"3.11.4|macos_x86_64|8c6af11e1058efe953830ecb38324c0e0fd2fb67df3891896d138c535932e7db|2482119"
]
And
[MASTER]
load-plugins=pylint_protobuf
I get a passing pylint.gorgeous-winter-99296
06/05/2023, 5:57 PMpurple-plastic-57801
06/05/2023, 5:58 PMpurple-plastic-57801
06/06/2023, 12:50 AMpurple-plastic-57801
06/06/2023, 1:36 AMprotobuf-undefined-attribute
seems to do the trick