cool-easter-32542
12/16/2024, 11:07 AM--changed-since as a goal filter or if you save the result into a file via list and use --spec-files on the lint goal.\n\nSteps to reproduce:\n\ngit clone https://github.com/pantsbuild/example-python\ncd example-python\necho \"\" >> helloworld/BUILD\n\n# This correctly fails black because the BUILD file format has an extra new line in the end\npants --changed-since=HEAD lint \n\n# runs linter only on source mapped inside changed BUILD FILE, but not the BUILD file itself so black passes.\npants --changed-since=HEAD list > changed_targets.txt \npants --spec-files=changed_targets.txt lint \n\nWith the contents of `changed_targets.txt`:\n\n```\nhelloworldpex binary\nhelloworld/ init .pylib\nhelloworld/main.py:lib\n\n```\n\n*Pants version* \n2.23.0\n\n*OS* \nMacOS\n\n*Additional info*
pantsbuild/pants