pub struct Found {
pub cargo: bool,
pub nextest: bool,
pub npm_scripts: Vec<String>,
pub node_manager: Option<String>,
pub python: bool,
pub python_bin: Option<String>,
pub pytest: bool,
pub ruff: bool,
pub mypy: bool,
pub go: bool,
pub make_test: bool,
}Expand description
What init saw at the project root.
Fields§
§cargo: boolCargo.toml exists.
nextest: boolcargo nextest is installed.
npm_scripts: Vec<String>package.json’s scripts, by name.
node_manager: Option<String>npm, pnpm, yarn or bun, from the lockfile; None without package.json.
python: boolpyproject.toml, setup.cfg, setup.py or pytest.ini exists.
python_bin: Option<String>The project’s own interpreter (.venv/bin/python), when it has one:
checks use it, so they work without an activated environment.
pytest: boolpytest runs with that interpreter (or python3).
ruff: bool[tool.ruff] (or ruff.toml) is configured.
mypy: bool[tool.mypy] (or mypy.ini) is configured.
go: boolgo.mod exists.
make_test: boolA Makefile with a test: target exists.
Trait Implementations§
impl Eq for Found
impl StructuralPartialEq for Found
Auto Trait Implementations§
impl Freeze for Found
impl RefUnwindSafe for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnsafeUnpin for Found
impl UnwindSafe for Found
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.