mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Fix lint errors
This commit is contained in:
parent
aaad6ff2e0
commit
1e659a5d1f
3 changed files with 2 additions and 15 deletions
|
|
@ -57,12 +57,7 @@ fn normalize_version(version: &str) -> String {
|
|||
}
|
||||
|
||||
pub fn setup_venv(build: &mut Build) -> Result<()> {
|
||||
let extra_binary_exports = &[
|
||||
"mypy",
|
||||
"ruff",
|
||||
"pytest",
|
||||
"protoc-gen-mypy",
|
||||
];
|
||||
let extra_binary_exports = &["mypy", "ruff", "pytest", "protoc-gen-mypy"];
|
||||
build.add_action(
|
||||
"pyenv",
|
||||
PythonEnvironment {
|
||||
|
|
|
|||
|
|
@ -201,14 +201,7 @@ impl BuildAction for PythonFormat<'_> {
|
|||
build.add_inputs("ruff", inputs![":pyenv:ruff"]);
|
||||
|
||||
let hash = simple_hash(self.inputs);
|
||||
build.add_variable(
|
||||
"check",
|
||||
if self.check_only {
|
||||
"--check"
|
||||
} else {
|
||||
""
|
||||
},
|
||||
);
|
||||
build.add_variable("check", if self.check_only { "--check" } else { "" });
|
||||
|
||||
build.add_output_stamp(format!(
|
||||
"tests/python_format.{}.{hash}",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ Code for generating hooks.
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from dataclasses import dataclass
|
||||
|
|
|
|||
Loading…
Reference in a new issue