type: ignore[codes] and knot: ignore (#15078)

This commit is contained in:
Micha Reiser 2024-12-23 10:52:43 +01:00 committed by GitHub
parent 9eb73cb7e0
commit 2f85749fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 737 additions and 48 deletions

View file

@ -2,9 +2,10 @@ use anyhow::Result;
use std::sync::Arc;
use zip::CompressionMethod;
use red_knot_python_semantic::lint::RuleSelection;
use red_knot_python_semantic::lint::{LintRegistry, RuleSelection};
use red_knot_python_semantic::{
Db, Program, ProgramSettings, PythonPlatform, PythonVersion, SearchPathSettings,
default_lint_registry, Db, Program, ProgramSettings, PythonPlatform, PythonVersion,
SearchPathSettings,
};
use ruff_db::files::{File, Files};
use ruff_db::system::{OsSystem, System, SystemPathBuf};
@ -93,6 +94,10 @@ impl Db for ModuleDb {
fn rule_selection(&self) -> &RuleSelection {
&self.rule_selection
}
fn lint_registry(&self) -> &LintRegistry {
default_lint_registry()
}
}
#[salsa::db]