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

pantsbuild / pants / 23274822986

19 Mar 2026 01:06AM UTC coverage: 92.926% (-0.006%) from 92.932%
23274822986

push

github

web-flow
[pants_ng] An NG subsystem implementation (#23165)

Like OG subsystems, these are containers of options
read from flags, env vars and config files.

Unlike OG subsystems, these are not necessarily
singletons - you can have multiple instances of the
same subsystem active for different partitions of
sources that have different local config files.

Making OG subsystems non-singleton was not feasible,
for both design and performance reasons.

These NG subsystems are lighter weight and more 
streamlined than their OG counterparts:

- They support a more limited set of value types.
- Option registration is via a new `@option` decorator
  instead of the large menagerie of field type classes.

AI disclosure: Claude found a way to create a mypy plugin
  that prevents spurious empty body errors. I had to manually
  tweak the plugin to make it less verbose and more streamlined.

269 of 295 new or added lines in 2 files covered. (91.19%)

1 existing line in 1 file now uncovered.

91440 of 98401 relevant lines covered (92.93%)

4.04 hits per line

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

98.44
/src/python/pants/ng/subsystem_test.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