Skip to content

Commit

Permalink
Disable preview mode during benchmarks
Browse files Browse the repository at this point in the history
Temporarily. Looks to be causing benchmark regressions and should be considered separately.
  • Loading branch information
zanieb committed Sep 6, 2023
1 parent 6351494 commit 9522dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff_benchmark/benches/linter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use ruff::linter::lint_only;
use ruff::settings::types::PreviewMode;
use ruff::settings::{flags, Settings};
use ruff::source_kind::SourceKind;
use ruff::RuleSelector;
Expand Down Expand Up @@ -79,7 +80,7 @@ fn benchmark_default_rules(criterion: &mut Criterion) {

fn benchmark_all_rules(criterion: &mut Criterion) {
let settings = Settings {
rules: RuleSelector::All.all_rules().collect(),
rules: RuleSelector::All.rules(PreviewMode::Disabled).collect(),
..Settings::default()
};

Expand Down

0 comments on commit 9522dfb

Please sign in to comment.