Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,9 @@ on:
push:
branches:
- main

pull_request:

jobs:
tests:
name: Tests Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
- '3.4'

steps:
- uses: actions/checkout@v7.0.0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run static type checks
run: bundle exec srb tc
- name: Run lint
run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec
call-workflow-from-shared-config:
uses: rubyatscale/shared-config/.github/workflows/ci.yml@main
secrets: inherit
31 changes: 17 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ GEM
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.10.2)
language_server-protocol (3.17.0.4)
json (2.20.0)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
logger (1.6.6)
loofah (2.24.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.1.0)
minitest (5.25.5)
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
netrc (0.11.0)
nokogiri (1.19.4-aarch64-linux-gnu)
racc (~> 1.4)
Expand All @@ -94,17 +96,17 @@ GEM
prism (>= 0.25.0)
sorbet-runtime (>= 0.5.9914)
zeitwerk (>= 2.6.1)
parallel (1.26.3)
parallel (2.1.0)
parse_packwerk (0.26.0)
bigdecimal
sorbet-runtime
parser (3.3.7.2)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
prism (1.9.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -129,7 +131,7 @@ GEM
logger
rdoc (6.12.0)
psych (>= 4.0.0)
regexp_parser (2.10.0)
regexp_parser (2.12.0)
reline (0.6.0)
io-console (~> 0.5)
rspec (3.13.0)
Expand All @@ -145,19 +147,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
rubocop (1.74.0)
rubocop (1.88.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parallel (>= 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.41.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-performance (1.24.0)
lint_roller (~> 1.1)
rubocop (>= 1.72.1, < 2.0)
Expand Down Expand Up @@ -197,9 +200,9 @@ GEM
thor (1.3.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
uri (1.1.1)
yard (0.9.44)
yard-sorbet (0.9.0)
Expand Down
6 changes: 4 additions & 2 deletions lib/query_packwerk/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ def name
@original_package.name
end

# Mirrors packwerk's public API naming, so it can't take a `?` suffix.
sig { returns(T::Boolean) }
def enforce_dependencies
def enforce_dependencies # rubocop:disable Naming/PredicateMethod
!!@original_package.enforce_dependencies
end

# Mirrors packwerk's public API naming, so it can't take a `?` suffix.
sig { returns(T::Boolean) }
def enforce_privacy
def enforce_privacy # rubocop:disable Naming/PredicateMethod
!!@original_package.enforce_privacy
end

Expand Down
Loading