Commit 75fb0a3 1 parent 8b75c1e commit 75fb0a3 Copy full SHA for 75fb0a3
File tree 4 files changed +22
-0
lines changed
tooling/src/hypothesistooling
4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 25
25
- check-quality
26
26
- lint-ruby
27
27
- check-ruby-tests
28
+ - check-rust-in-ruby-format
28
29
- check-conjecture-rust-format
29
30
- check-rust-tests
30
31
- audit-conjecture-rust
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ wrappable_struct!(
50
50
51
51
class ! ( HypothesisCoreDataSource ) ;
52
52
53
+ #[ rustfmt:: skip]
53
54
methods ! (
54
55
HypothesisCoreDataSource ,
55
56
itself,
@@ -149,6 +150,7 @@ wrappable_struct!(
149
150
150
151
class ! ( HypothesisCoreEngine ) ;
151
152
153
+ #[ rustfmt:: skip]
152
154
methods ! (
153
155
HypothesisCoreEngine ,
154
156
itself,
@@ -277,6 +279,7 @@ wrappable_struct!(
277
279
278
280
class ! ( HypothesisCoreIntegers ) ;
279
281
282
+ #[ rustfmt:: skip]
280
283
methods ! (
281
284
HypothesisCoreIntegers ,
282
285
itself,
@@ -333,6 +336,7 @@ wrappable_struct!(
333
336
334
337
class ! ( HypothesisCoreRepeatValues ) ;
335
338
339
+ #[ rustfmt:: skip]
336
340
methods ! (
337
341
HypothesisCoreRepeatValues ,
338
342
itself,
@@ -394,6 +398,7 @@ wrappable_struct!(
394
398
395
399
class ! ( HypothesisCoreBoundedIntegers ) ;
396
400
401
+ #[ rustfmt:: skip]
397
402
methods ! (
398
403
HypothesisCoreBoundedIntegers ,
399
404
itself,
Original file line number Diff line number Diff line change @@ -475,6 +475,16 @@ def check_ruby_tests():
475
475
hr .rake_task ("minitest" )
476
476
477
477
478
+ @ruby_task
479
+ def format_rust_in_ruby ():
480
+ hr .cargo ("fmt" )
481
+
482
+
483
+ @ruby_task
484
+ def check_rust_in_ruby_format ():
485
+ hr .cargo ("fmt" , "--" , "--check" )
486
+
487
+
478
488
@task ()
479
489
def python (* args ):
480
490
os .execv (sys .executable , (sys .executable ,) + args )
Original file line number Diff line number Diff line change @@ -140,6 +140,12 @@ def ensure_bundler():
140
140
bundle_command ("install" )
141
141
142
142
143
+ def cargo (* args ):
144
+ install .ensure_rustup ()
145
+ with in_dir (BASE_DIR ):
146
+ subprocess .check_call (("cargo" ,) + args )
147
+
148
+
143
149
RUBY_TO_PRINT_VERSION = """
144
150
require 'rubygems'
145
151
spec = Gem::Specification::load(%r)
You can’t perform that action at this time.
0 commit comments