Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent 3c358dc commit 30776c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ build:
export UV_LINK_MODE=copy
uv run \
--group doc \
--locked \
--no-dev \
--with tox \
tox -e doc
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git clone https://github.com/ComPWA/PWA-pages
cd PWA-pages
```

Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/#project-lockfile).
Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/layout/#the-lockfile).

```shell
uv sync --all-extras
Expand Down
6 changes: 3 additions & 3 deletions src/pwa_pages/project_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json
import re
from functools import partial
from typing import TYPE_CHECKING, Optional, Self, Union
from typing import TYPE_CHECKING, Self, Union

import yaml
from pydantic import BaseModel, model_validator
Expand Down Expand Up @@ -84,9 +84,9 @@ class SubProject(BaseModel):
class Project(BaseModel):
name: str
url: str
collaboration: Optional[Union[list[str], str]] = None
collaboration: Union[list[str], str] | None = None
languages: list[str] = []
sub_projects: Optional[list[SubProject]] = None
sub_projects: list[SubProject] | None = None
since: int = 0


Expand Down

0 comments on commit 30776c6

Please sign in to comment.