https://pantsbuild.org/ logo
p

polite-garden-50641

01/25/2023, 3:54 PM
how would I tell regex-lint (https://www.pantsbuild.org/v2.15/docs/reference-regex-lint) to skip a particular file or directory ? I don't see anything in the docs... We are using it targetless, do I need to add a BUILD file w/ a target and set the skip flag there somehow ?
e

enough-analyst-54434

01/25/2023, 4:01 PM
You could probably just pants ignore the file. I forget that global option...
[GLOBAL] pants_ignore = ["...path glob...", ...]
I think you want all Pants operations to skip it IIUC
Ah, I missed context. I happen to know from other channels Asher is talking about a checked-in pantsup.sh script... I think anyhow.
p

polite-garden-50641

01/25/2023, 4:16 PM
yup.
I can do that for now... but ideally, I want to tell a specific tool (regex-lint) to skip files.
e

enough-analyst-54434

01/25/2023, 4:17 PM
I think for that your guess was about right.
Ah, no. That's not it.
h

happy-kitchen-89482

01/25/2023, 4:22 PM
Why is it checked in?
e

enough-analyst-54434

01/25/2023, 4:23 PM
You need to edit that config file.
@happy-kitchen-89482 @polite-garden-50641 already started a thread about security concerns curling a script in CI and in general and he prefers checking it in.
p

polite-garden-50641

01/25/2023, 4:32 PM
ahh.. regex. not ideal but doeable. thanks! it didn't occur to me do do that when I looked at the config file.
5 Views