• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 22779667066

06 Mar 2026 07:56PM UTC coverage: 92.929% (-0.002%) from 92.931%
22779667066

push

github

web-flow
[pants ng] Partition source files by config. (#23157)

A `partition_sources()` function that partitions a set of source
files by applicable configs. 

A config file is applicable to a source file if it is in or above that
source file's directory. Pants NG will act on each partition 
independently and concurrently, applying that partition's config.

Also adds pyo3 mappings for various Pants NG options-related
types, including SourcePartition.

There is some boilerplate repetition of the `get_*()` methods
in `PyNgOptionsReader` that are similar to those in 
`PyOptionParser`. Alas we can't reuse that code for various
reasons.

**AI disclosure:** I used Claude Code to generate an initial
options_test.rs, which I then inspected and modified manually.

90956 of 97877 relevant lines covered (92.93%)

3.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.53
/src/python/pants/backend/python/providers/python_build_standalone/rules.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc