Skip to content

Commit

Permalink
chore(prettier): Apply changed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
trallnag committed Jul 11, 2023
1 parent 3818063 commit 3f6ce6c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
key: ${{ runner.os }}-poetry-installation-${{ matrix.python-version }}-${{ env.poetry_version }}-0
key: |-
${{ runner.os }}-poetry-installation-${{ matrix.python-version }}-${{ env.poetry_version }}-0
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
Expand All @@ -53,7 +54,8 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0
key: |-
${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0
restore-keys: |
${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-${{ env.poetry_version }}-
${{ runner.os }}-poetry-cache-${{ matrix.python-version }}-
Expand All @@ -65,7 +67,8 @@ jobs:
# Tests.

- name: Run tests with Pytest
run: poetry run pytest --cov-report=term-missing --cov-report=xml --cov=src
run: |
poetry run pytest --cov-report=term-missing --cov-report=xml --cov=src
- name: Run multi process tests with Pytest
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
key: |-
${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
Expand All @@ -61,7 +62,8 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0
key: |-
${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}-${{ hashFiles('poetry.lock') }}-0
restore-keys: |
${{ runner.os }}-poetry-cache-${{ env.python_version }}-${{ env.poetry_version }}-
${{ runner.os }}-poetry-cache-${{ env.python_version }}-
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
key: |-
${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/testpypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
path: |
~/.local/bin/poetry
~/.local/share/pypoetry
key: ${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
key: |-
${{ runner.os }}-poetry-installation-${{ env.python_version }}-${{ env.poetry_version }}-0
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
Expand All @@ -55,11 +56,11 @@ jobs:
# Release to TestPyPI.

- name: Adjust package version
if: ${{ inputs.version != '' }}
if: ${{ inputs.version != '' }}
run: poetry version -- ${{ inputs.version }}

- name: Adjust __version__ variable
if: ${{ inputs.version != '' }}
if: ${{ inputs.version != '' }}
run: |
pversion="$(poetry version --short)"
sed -i "/^__version__/c\__version__ = \"$pversion\"" src/*/__init__.py
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ Nothing. Dummy release.

### Changed

- Renamed project from *Prometheus FastAPI Exporter* to *Prometheus FastAPI
Instrumentator*. Reasoning behind this change: Focus of this project is the
- Renamed project from _Prometheus FastAPI Exporter_ to _Prometheus FastAPI
Instrumentator_. Reasoning behind this change: Focus of this project is the
instrumentation, not exposition of metrics.

## [1.0.2](https://github.com/trallnag/prometheus-fastapi-instrumentator/compare/v1.0.1...v1.0.2) / 2020-07-15
Expand Down

0 comments on commit 3f6ce6c

Please sign in to comment.