This file provides guidance to AI coding agents when working with code in this repository.
parse_packwerk is a low-dependency Ruby gem for parsing and writing the YAML files that packwerk uses: package.yml (package config) and package_todo.yml (recorded violations).
bundle install
# Run all tests (RSpec)
bundle exec rspec
# Run a single spec file
bundle exec rspec spec/path/to/spec.rb
# Lint
bundle exec rubocop
bundle exec rubocop -a # auto-correct
# Type checking (Sorbet)
bundle exec srb tclib/parse_packwerk.rb— entry point;ParsePackwerk.allreturns all packageslib/parse_packwerk/—Package(parsespackage.yml),PackageTodo(parsespackage_todo.yml), and YAML write-back helpers that preserve comments and orderingspec/— RSpec tests