mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Implement E402 (ModuleImportNotAtTopOfFile) (#102)
This commit is contained in:
parent
533b4e752b
commit
3cf9e3b201
9 changed files with 133 additions and 16 deletions
|
@ -44,6 +44,7 @@ impl Settings {
|
|||
.collect(),
|
||||
select: config.select.unwrap_or_else(|| {
|
||||
BTreeSet::from([
|
||||
CheckCode::E402,
|
||||
CheckCode::E501,
|
||||
CheckCode::F401,
|
||||
CheckCode::F403,
|
||||
|
@ -52,8 +53,8 @@ impl Settings {
|
|||
CheckCode::F634,
|
||||
CheckCode::F706,
|
||||
CheckCode::F707,
|
||||
CheckCode::F831,
|
||||
CheckCode::F823,
|
||||
CheckCode::F831,
|
||||
CheckCode::F901,
|
||||
])
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue