mdsf/languages/
python.rs

1use crate::{execution::MdsfFormatter, tools::Tooling};
2
3#[inline]
4pub fn default_config() -> (String, MdsfFormatter<Tooling>) {
5    (
6        "python".to_string(),
7        MdsfFormatter::Multiple(vec![
8            MdsfFormatter::Multiple(vec![
9                MdsfFormatter::Single(Tooling::Usort),
10                MdsfFormatter::Single(Tooling::Isort),
11            ]),
12            MdsfFormatter::Multiple(vec![
13                MdsfFormatter::Single(Tooling::RuffFormat),
14                MdsfFormatter::Single(Tooling::Blue),
15                MdsfFormatter::Single(Tooling::Black),
16                MdsfFormatter::Single(Tooling::Yapf),
17                MdsfFormatter::Single(Tooling::Autopep8),
18                MdsfFormatter::Single(Tooling::Pyink),
19            ]),
20        ]),
21    )
22}