- Upgraded bundler version from 2.4.5 to 2.5.6 in Dockerfile for better compatibility. - Updated gem versions for faiss and rails_live_reload to their latest versions. - Modified Ruby files to enforce strict typing with Sorbet, enhancing type safety across various models and jobs. - Added type signatures to methods in Inkbunny and FA domain models, ensuring better type checking and documentation. - Improved job argument handling in Inkbunny jobs, including priority settings for deferred jobs. - Refactored initialization logic in several models to ensure default states are set correctly. These changes aim to enhance the overall stability and maintainability of the codebase.
27 lines
749 B
Makefile
27 lines
749 B
Makefile
default:
|
|
@just --list
|
|
|
|
[private]
|
|
changed-ruby-files:
|
|
@git diff --name-only | \
|
|
(grep -v 'db/schema.rb' || true) | \
|
|
(grep -E '(\.(rb|rake|erb)|Rakefile)$' || true)
|
|
|
|
format-changed:
|
|
just changed-ruby-files | xargs -I{} bash -c "stree format {} > {}.tmp && mv {}.tmp {}"
|
|
|
|
format-all:
|
|
find . -name '*.rb' -type f -exec sh -c 'stree format "$1" > "$1.tmp" && mv "$1.tmp" "$1"' sh {} \;
|
|
|
|
psql-dump-domain-fa-favs:
|
|
@psql -P pager=off -c 'select user_id, post_id, 1 from domain_fa_favs limit 10000000;' -d redux_prod -h 10.166.33.171 -U scraper_redux -t -A -F ' '
|
|
|
|
test:
|
|
bundle exec srb tc && bin/rake parallel:spec
|
|
|
|
tc *args:
|
|
bundle exec srb tc {{args}}
|
|
|
|
tapioca *args:
|
|
bundle _2.5.6_ exec tapioca {{args}}
|