Skip to content

Commit 31c2e14

Browse files
committed
Fix linting and tests
1 parent d025f49 commit 31c2e14

File tree

2 files changed

+27
-13
lines changed

2 files changed

+27
-13
lines changed

crates/uv/tests/it/show_settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7760,7 +7760,7 @@ fn preview_features() {
77607760
show_settings: true,
77617761
preview: Preview {
77627762
flags: PreviewFeatures(
7763-
PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PACKAGE_CONFLICTS | EXTRA_BUILD_DEPENDENCIES | DETECT_MODULE_CONFLICTS | FORMAT | NATIVE_AUTH | S3_ENDPOINT,
7763+
PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PACKAGE_CONFLICTS | EXTRA_BUILD_DEPENDENCIES | DETECT_MODULE_CONFLICTS | FORMAT | NATIVE_AUTH | S3_ENDPOINT | SBOM_EXPORT,
77647764
),
77657765
},
77667766
python_preference: Managed,
@@ -7988,7 +7988,7 @@ fn preview_features() {
79887988
show_settings: true,
79897989
preview: Preview {
79907990
flags: PreviewFeatures(
7991-
PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PACKAGE_CONFLICTS | EXTRA_BUILD_DEPENDENCIES | DETECT_MODULE_CONFLICTS | FORMAT | NATIVE_AUTH | S3_ENDPOINT,
7991+
PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PACKAGE_CONFLICTS | EXTRA_BUILD_DEPENDENCIES | DETECT_MODULE_CONFLICTS | FORMAT | NATIVE_AUTH | S3_ENDPOINT | SBOM_EXPORT,
79927992
),
79937993
},
79947994
python_preference: Managed,

docs/guides/export.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ description: Exporting a lockfile to different formats
55

66
# Exporting a lockfile
77

8-
uv can export a lockfile to different formats for integration with other tools and workflows. The `uv export` command supports multiple output formats, each suited to different use cases.
8+
uv can export a lockfile to different formats for integration with other tools and workflows. The
9+
`uv export` command supports multiple output formats, each suited to different use cases.
910

1011
For more details on lockfiles and how they're created, see the
1112
[project layout](../concepts/projects/layout.md) and
@@ -15,9 +16,12 @@ For more details on lockfiles and how they're created, see the
1516

1617
uv supports three export formats:
1718

18-
- `requirements.txt`: The traditional pip-compatible [requirements file format](https://pip.pypa.io/en/stable/reference/requirements-file-format/).
19-
- `pylock.toml`: The standardized Python lockfile format defined in [PEP 751](https://peps.python.org/pep-0751/).
20-
- `CycloneDX`: An industry-standard [Software Bill of Materials (SBOM)](https://cyclonedx.org/) format.
19+
- `requirements.txt`: The traditional pip-compatible
20+
[requirements file format](https://pip.pypa.io/en/stable/reference/requirements-file-format/).
21+
- `pylock.toml`: The standardized Python lockfile format defined in
22+
[PEP 751](https://peps.python.org/pep-0751/).
23+
- `CycloneDX`: An industry-standard [Software Bill of Materials (SBOM)](https://cyclonedx.org/)
24+
format.
2125

2226
The format can be specified with the `--format` flag:
2327

@@ -39,15 +43,17 @@ $ uv export --format cyclonedx1.5
3943

4044
## `requirements.txt` format
4145

42-
The `requirements.txt` format is the most widely supported format for Python dependencies. It can be used with `pip` and other Python package managers.
46+
The `requirements.txt` format is the most widely supported format for Python dependencies. It can be
47+
used with `pip` and other Python package managers.
4348

4449
### Basic usage
4550

4651
```console
4752
$ uv export --format requirements.txt
4853
```
4954

50-
The generated `requirements.txt` file can then be installed via `uv pip install`, or with other tools like `pip`.
55+
The generated `requirements.txt` file can then be installed via `uv pip install`, or with other
56+
tools like `pip`.
5157

5258
!!! note
5359

@@ -58,7 +64,8 @@ The generated `requirements.txt` file can then be installed via `uv pip install`
5864

5965
## `pylock.toml` format
6066

61-
[PEP 751](https://peps.python.org/pep-0751/) defines a TOML-based lockfile format for Python dependencies. uv can export your project's dependency lockfile to this format.
67+
[PEP 751](https://peps.python.org/pep-0751/) defines a TOML-based lockfile format for Python
68+
dependencies. uv can export your project's dependency lockfile to this format.
6269

6370
### Basic usage
6471

@@ -68,15 +75,19 @@ $ uv export --format pylock.toml
6875

6976
## CycloneDX SBOM format
7077

71-
uv can export your project's dependency lockfile as a Software Bill of Materials (SBOM) in CycloneDX format. SBOMs provide a comprehensive inventory of all software components in your application, which is useful for security auditing, compliance, and supply chain transparency.
78+
uv can export your project's dependency lockfile as a Software Bill of Materials (SBOM) in CycloneDX
79+
format. SBOMs provide a comprehensive inventory of all software components in your application,
80+
which is useful for security auditing, compliance, and supply chain transparency.
7281

7382
!!! important
7483

7584
Support for exporting to CycloneDX is in [preview](../concepts/preview.md), so may be subject to change.
7685

7786
### What is CycloneDX?
7887

79-
[CycloneDX](https://cyclonedx.org/) is an industry-standard format for creating Software Bill of Materials. CycloneDX is machine readable and widely supported by security scanning tools, vulnerability databases, and Software Composition Analysis (SCA) platforms.
88+
[CycloneDX](https://cyclonedx.org/) is an industry-standard format for creating Software Bill of
89+
Materials. CycloneDX is machine readable and widely supported by security scanning tools,
90+
vulnerability databases, and Software Composition Analysis (SCA) platforms.
8091

8192
### Basic usage
8293

@@ -86,11 +97,14 @@ To export your project's lockfile as a CycloneDX SBOM:
8697
$ uv export --format cyclonedx1.5
8798
```
8899

89-
This will generate a JSON-encoded CycloneDX v1.5 document containing your project and all of its dependencies.
100+
This will generate a JSON-encoded CycloneDX v1.5 document containing your project and all of its
101+
dependencies.
90102

91103
### SBOM Structure
92104

93-
The generated SBOM follows the [CycloneDX specification](https://cyclonedx.org/specification/overview/). uv also includes the following custom properties on components:
105+
The generated SBOM follows the
106+
[CycloneDX specification](https://cyclonedx.org/specification/overview/). uv also includes the
107+
following custom properties on components:
94108

95109
- `uv:package:marker`: Environment markers (e.g., `python_version >= "3.8"`)
96110
- `uv:workspace:path`: Relative path for workspace members

0 commit comments

Comments
 (0)