mirror of
https://github.com/BoPeng/ai-marketplace-monitor.git
synced 2025-12-23 22:28:18 -05:00
More changes
This commit is contained in:
9
.github/workflows/pre-commit-autoupdate.yml
vendored
9
.github/workflows/pre-commit-autoupdate.yml
vendored
@@ -20,16 +20,15 @@ jobs:
|
||||
- name: Install system deps
|
||||
shell: bash
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry config virtualenvs.in-project true
|
||||
poetry install --no-root --only dev --only linters --sync
|
||||
pip install uv
|
||||
uv sync --extra dev --extra linters
|
||||
|
||||
- name: Run autoupdate
|
||||
run: poetry run pre-commit autoupdate
|
||||
run: uv run pre-commit autoupdate
|
||||
continue-on-error: true
|
||||
|
||||
- name: Run pre-commit
|
||||
run: poetry run pre-commit run --all-files
|
||||
run: uv run pre-commit run --all-files
|
||||
|
||||
- uses: peter-evans/create-pull-request@v7.0.8
|
||||
with:
|
||||
|
||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -23,12 +23,11 @@ jobs:
|
||||
- name: Install system deps
|
||||
shell: bash
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry config virtualenvs.in-project true
|
||||
pip install uv
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
poetry build --ansi
|
||||
uv build
|
||||
|
||||
- name: Publish package on PyPI
|
||||
uses: pypa/gh-action-pypi-publish@v1.12.4
|
||||
|
||||
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@@ -21,13 +21,12 @@ jobs:
|
||||
- name: Install system deps
|
||||
shell: bash
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry config virtualenvs.in-project true
|
||||
poetry install --no-root --only dev --only linters --sync
|
||||
pip install uv
|
||||
uv sync --extra dev --extra linters
|
||||
|
||||
- name: Linting
|
||||
shell: bash
|
||||
run: poetry run pre-commit run --all-files
|
||||
run: uv run pre-commit run --all-files
|
||||
|
||||
tests:
|
||||
needs: linting
|
||||
@@ -49,9 +48,8 @@ jobs:
|
||||
- name: Install system deps
|
||||
shell: bash
|
||||
run: |
|
||||
pip install nox-poetry==1.1.0
|
||||
pip install poetry==1.8.5
|
||||
poetry config virtualenvs.in-project true
|
||||
pip install nox
|
||||
pip install uv
|
||||
|
||||
- name: Run mypy with nox
|
||||
shell: bash
|
||||
|
||||
@@ -13,10 +13,10 @@ We take our open source community seriously and hold ourselves and other contrib
|
||||
|
||||
### Requirements
|
||||
|
||||
We use `poetry` to manage and install dependencies. [Poetry](https://python-poetry.org/) provides a custom installer that will install `poetry` isolated from the rest of your system.
|
||||
We use `uv` to manage and install dependencies. [uv](https://docs.astral.sh/uv/) is a fast Python package manager that can be installed with:
|
||||
|
||||
```
|
||||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
|
||||
pip install uv
|
||||
```
|
||||
|
||||
We'll also need `nox` for automated testing in multiple Python environments so [install that too](https://nox.thea.codes/en/stable/).
|
||||
@@ -24,11 +24,11 @@ We'll also need `nox` for automated testing in multiple Python environments so [
|
||||
To install the local development requirements inside a virtual environment run:
|
||||
|
||||
```
|
||||
$ poetry install
|
||||
$ poetry run inv install-hooks
|
||||
$ uv sync --all-extras
|
||||
$ uv run inv install-hooks
|
||||
```
|
||||
|
||||
> For more information about `poetry` check the [docs](https://python-poetry.org/docs/).
|
||||
> For more information about `uv` check the [docs](https://docs.astral.sh/uv/).
|
||||
|
||||
We use [invoke](http://www.pyinvoke.org/) to wrap up some useful tasks like formatting, linting, testing and more.
|
||||
|
||||
@@ -59,7 +59,7 @@ git checkout dev
|
||||
Then install the tool from source code with command
|
||||
|
||||
```sh
|
||||
poetry install
|
||||
uv sync
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Reference in New Issue
Block a user