Fix lint errors

This commit is contained in:
Abdo 2025-06-23 19:41:31 +03:00
parent aaad6ff2e0
commit 1e659a5d1f
3 changed files with 2 additions and 15 deletions

View file

@ -57,12 +57,7 @@ fn normalize_version(version: &str) -> String {
} }
pub fn setup_venv(build: &mut Build) -> Result<()> { pub fn setup_venv(build: &mut Build) -> Result<()> {
let extra_binary_exports = &[ let extra_binary_exports = &["mypy", "ruff", "pytest", "protoc-gen-mypy"];
"mypy",
"ruff",
"pytest",
"protoc-gen-mypy",
];
build.add_action( build.add_action(
"pyenv", "pyenv",
PythonEnvironment { PythonEnvironment {

View file

@ -201,14 +201,7 @@ impl BuildAction for PythonFormat<'_> {
build.add_inputs("ruff", inputs![":pyenv:ruff"]); build.add_inputs("ruff", inputs![":pyenv:ruff"]);
let hash = simple_hash(self.inputs); let hash = simple_hash(self.inputs);
build.add_variable( build.add_variable("check", if self.check_only { "--check" } else { "" });
"check",
if self.check_only {
"--check"
} else {
""
},
);
build.add_output_stamp(format!( build.add_output_stamp(format!(
"tests/python_format.{}.{hash}", "tests/python_format.{}.{hash}",

View file

@ -7,7 +7,6 @@ Code for generating hooks.
from __future__ import annotations from __future__ import annotations
import os
import subprocess import subprocess
import sys import sys
from dataclasses import dataclass from dataclasses import dataclass