mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
type: ignore[codes]
and knot: ignore
(#15078)
This commit is contained in:
parent
9eb73cb7e0
commit
2f85749fa0
13 changed files with 737 additions and 48 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue