mirror of
https://github.com/astral-sh/uv
synced 2026-01-23 06:20:12 -05:00
Fast lint CI job: Rustfmt, Prettier, Ruff (#2406)
Add a single job for for fast lint tools. Rustfmt for rust, ruff for python formatting and linting, prettier avoids inconsistent formatter changes between pycharm and vscode.
This commit is contained in:
@@ -25,6 +25,7 @@ each build, as in:
|
||||
--uv-path ./target/release/baseline \
|
||||
requirements.in
|
||||
"""
|
||||
|
||||
import abc
|
||||
import argparse
|
||||
import enum
|
||||
@@ -271,11 +272,9 @@ class PipCompile(Suite):
|
||||
],
|
||||
)
|
||||
|
||||
def install_cold(self, requirements_file: str, *, cwd: str) -> Command | None:
|
||||
...
|
||||
def install_cold(self, requirements_file: str, *, cwd: str) -> Command | None: ...
|
||||
|
||||
def install_warm(self, requirements_file: str, *, cwd: str) -> Command | None:
|
||||
...
|
||||
def install_warm(self, requirements_file: str, *, cwd: str) -> Command | None: ...
|
||||
|
||||
|
||||
class PipSync(Suite):
|
||||
@@ -283,16 +282,13 @@ class PipSync(Suite):
|
||||
self.name = path or "pip-sync"
|
||||
self.path = path or "pip-sync"
|
||||
|
||||
def resolve_cold(self, requirements_file: str, *, cwd: str) -> Command | None:
|
||||
...
|
||||
def resolve_cold(self, requirements_file: str, *, cwd: str) -> Command | None: ...
|
||||
|
||||
def resolve_warm(self, requirements_file: str, *, cwd: str) -> Command | None:
|
||||
...
|
||||
def resolve_warm(self, requirements_file: str, *, cwd: str) -> Command | None: ...
|
||||
|
||||
def resolve_incremental(
|
||||
self, requirements_file: str, *, cwd: str
|
||||
) -> Command | None:
|
||||
...
|
||||
) -> Command | None: ...
|
||||
|
||||
def install_cold(self, requirements_file: str, *, cwd: str) -> Command | None:
|
||||
cache_dir = os.path.join(cwd, ".cache")
|
||||
|
||||
@@ -17,6 +17,7 @@ Acknowledgements:
|
||||
Derived from https://github.com/mitsuhiko/rye/tree/f9822267a7f00332d15be8551f89a212e7bc9017
|
||||
Originally authored by Armin Ronacher under the MIT license
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
@@ -144,9 +144,9 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
||||
"local-used-without-sdist",
|
||||
):
|
||||
expected["satisfiable"] = False
|
||||
expected[
|
||||
"explanation"
|
||||
] = "We do not have correct behavior for local version identifiers yet"
|
||||
expected["explanation"] = (
|
||||
"We do not have correct behavior for local version identifiers yet"
|
||||
)
|
||||
|
||||
# Split scenarios into `install` and `compile` cases
|
||||
install_scenarios = []
|
||||
@@ -167,13 +167,13 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
||||
ref = "HEAD" if packse_version == "0.0.0" else packse_version
|
||||
|
||||
# Add generated metadata
|
||||
data[
|
||||
"generated_from"
|
||||
] = f"https://github.com/zanieb/packse/tree/{ref}/scenarios"
|
||||
data["generated_from"] = (
|
||||
f"https://github.com/zanieb/packse/tree/{ref}/scenarios"
|
||||
)
|
||||
data["generated_with"] = "./scripts/scenarios/sync.sh"
|
||||
data[
|
||||
"vendor_links"
|
||||
] = f"https://raw.githubusercontent.com/zanieb/packse/{ref}/vendor/links.html"
|
||||
data["vendor_links"] = (
|
||||
f"https://raw.githubusercontent.com/zanieb/packse/{ref}/vendor/links.html"
|
||||
)
|
||||
|
||||
data["index_url"] = f"https://astral-sh.github.io/packse/{ref}/simple-html/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user