square-psychiatrist-19087
03/07/2025, 12:32 PMsquare-psychiatrist-19087
03/07/2025, 12:32 PM[ruff] subsystemwide-midnight-78598
03/07/2025, 12:54 PMpants help or pants help-all I think define themwide-midnight-78598
03/07/2025, 12:54 PMwide-midnight-78598
03/07/2025, 12:55 PMsquare-psychiatrist-19087
03/07/2025, 12:56 PMsquare-psychiatrist-19087
03/07/2025, 12:58 PM[ruff]
default_version = "0.9.4"
default_known_versions = [
'0.9.4|macos_arm64 |48927361be76a93dbded0555d374af3172fc4010b54d97347957f6ab509d7e33|11082208',
'0.9.4|linux_arm64 |a9e880d819f290fc602768d25065c1316401229d04f0efaa7440017459968b11|11878008',
'0.9.4|macos_x86_64|7abe5ec80ae556fcf445be65825a340df32a8404a28332a988cb97dc65fe60c4|11613907',
'0.9.4|linux_x86_64|c49af645ed618e660c64cd253892039ff30645e1f1563bc7842918f7cd74d596|12500843',
]
version = "0.9.4"
known_versions = [
'0.9.4|macos_arm64 |48927361be76a93dbded0555d374af3172fc4010b54d97347957f6ab509d7e33|11082208',
'0.9.4|linux_arm64 |a9e880d819f290fc602768d25065c1316401229d04f0efaa7440017459968b11|11878008',
'0.9.4|macos_x86_64|7abe5ec80ae556fcf445be65825a340df32a8404a28332a988cb97dc65fe60c4|11613907',
'0.9.4|linux_x86_64|c49af645ed618e660c64cd253892039ff30645e1f1563bc7842918f7cd74d596|12500843',
]square-psychiatrist-19087
03/07/2025, 12:58 PMwide-midnight-78598
03/07/2025, 1:08 PM--ruff-config=<file_option>
PANTS_RUFF_CONFIG
config
default: None
current value: None
--ruff-url-template=<str>
PANTS_RUFF_URL_TEMPLATE
url_template
default: <https://github.com/astral-sh/ruff/releases/download/{version}/ruff-{platform}.tar.gz>
current value: <https://github.com/astral-sh/ruff/releases/download/{version}/ruff-{platform}.tar.gz>
--ruff-version=<str>
PANTS_RUFF_VERSION
version
default: 0.9.6
current value: 0.9.6
etc?square-psychiatrist-19087
03/07/2025, 1:16 PMsquare-psychiatrist-19087
03/07/2025, 1:18 PMpants export-current-config > pants.toml
and it would materialize the current config without actually changing anythingwide-midnight-78598
03/07/2025, 1:40 PMpants help-all?wide-midnight-78598
03/07/2025, 1:41 PMsquare-psychiatrist-19087
03/07/2025, 1:43 PM14:42:54.23 [ERROR] type object 'CueExportPackagesField' has no attribute 'help'wide-midnight-78598
03/07/2025, 1:47 PMhelp: ClassVar[str | Callable[[], str]]square-psychiatrist-19087
03/07/2025, 1:47 PMsquare-psychiatrist-19087
03/07/2025, 1:48 PMwide-midnight-78598
03/07/2025, 1:50 PMhelp-all in JSON and piping that into something like jq or another tool is typically the way something like this could be done.
pants export-current-config > pants.toml - pants gets its config from pants.toml, so piping it back in - i guess to dump all the defaults?
SchemaStore might also have this information per pants-version - the defaults, anywayssquare-psychiatrist-19087
03/07/2025, 2:00 PMhelp and try againwide-midnight-78598
03/07/2025, 2:03 PMhelp is expected to be populated (I think it's mentioned in the docs, and in tutorials - e.g. https://www.pantsbuild.org/stable/docs/writing-plugins/the-rules-api/options-and-subsystems#defining-options) - but I also thought that pyright or mypy flag when it's not there... So, that's weird.square-psychiatrist-19087
03/07/2025, 3:44 PMcurrent value, should I use value_history?happy-kitchen-89482
03/07/2025, 3:55 PMranked_valuessquare-psychiatrist-19087
03/12/2025, 7:56 PMsquare-psychiatrist-19087
03/12/2025, 7:56 PMwide-midnight-78598
03/12/2025, 7:58 PM@property messing with the mypy check, but 🤷 - I'll take any amount of typingsquare-psychiatrist-19087
03/12/2025, 7:59 PM@property messing up with the value, it's not obvious that Protocol works this way