Skip to content

Commit 5c7dadc

Browse files
authored
build(deps): remove unnecessary deps (#50)
* build(deps): bump uv and ruff to latest versions * docs(readme): update readme badge * ci(github): bump uv version to 0.5.13 * build(deps-dev): update lockfile * build(docker): clean docker orchestration * style(gitignore): fix lint
1 parent 53bf644 commit 5c7dadc

10 files changed

Lines changed: 57 additions & 519 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ on:
88

99
env:
1010
PYTHON_VERSION: "3.11"
11-
UV_VERSION: "0.5.7"
11+
UV_VERSION: "0.5.13"
1212

1313
jobs:
14-
build:
15-
runs-on: ${{ matrix.os }}
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
os: [ubuntu-latest]
14+
docker:
15+
runs-on: ubuntu-latest
2016
steps:
2117
- uses: actions/checkout@v4
2218
- uses: astral-sh/setup-uv@v5

.github/workflows/push.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
branches: main
55

66
env:
7-
UV_VERSION: "0.5.7"
8-
BACKEND_IMAGE: validate-python-headers
7+
UV_VERSION: "0.5.13"
98

109
jobs:
1110
docker:

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
PYTHON_VERSION: "3.11"
11-
UV_VERSION: "0.5.7"
11+
UV_VERSION: "0.5.13"
1212

1313
jobs:
1414
ruff:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
PYTHON_VERSION: "3.11"
11-
UV_VERSION: "0.5.7"
11+
UV_VERSION: "0.5.13"
1212

1313
jobs:
1414
run-action:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
requirements.txt

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ repos:
2323
- id: conventional-pre-commit
2424
stages: [commit-msg]
2525
- repo: https://github.com/charliermarsh/ruff-pre-commit
26-
rev: 'v0.8.2'
26+
rev: 'v0.8.4'
2727
hooks:
2828
- id: ruff
2929
args:
3030
- --fix
3131
- id: ruff-format
3232
- repo: https://github.com/astral-sh/uv-pre-commit
33-
rev: '0.5.7'
33+
rev: '0.5.13'
3434
hooks:
3535
- id: uv-lock
3636
args: ["--locked", "--project", "server"]

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.11-alpine
22

3-
ENV PYTHONDONTWRITEBYTECODE 1
4-
ENV PYTHONUNBUFFERED 1
3+
ENV PYTHONDONTWRITEBYTECODE=1
4+
ENV PYTHONUNBUFFERED=1
55

66
COPY entrypoint.sh /entrypoint.sh
77
COPY src/validate_headers.py /validate_headers.py

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Header validator for your Python files
22

33
<p align="center">
4-
<a href="https://github.com/frgfm/validate-python-headers/actions/workflows/builds.yml">
5-
<img alt="CI Status" src="https://img.shields.io/github/actions/workflow/status/frgfm/validate-python-headers/builds.yml?branch=main&label=CI&logo=github&style=flat-square">
4+
<a href="https://github.com/frgfm/validate-python-headers/actions/workflows/build.yml">
5+
<img alt="CI Status" src="https://img.shields.io/github/actions/workflow/status/frgfm/validate-python-headers/build.yml?branch=main&label=CI&logo=github&style=flat-square">
66
</a>
77
<a href="https://github.com/astral-sh/ruff">
88
<img src="https://img.shields.io/badge/Linter-Ruff-FCC21B?style=flat-square&logo=ruff&logoColor=white" alt="ruff">

pyproject.toml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,12 @@ maintainers = [{ name = "François-Guillaume Fernandez", email = "fg-feedback@pr
99
readme = "README.md"
1010
repository = { url = "https://github.com/frgfm/validate-python-headers" }
1111
keywords = ["github action", "python", "header", "copyright", "license"]
12-
dependencies = [
13-
"fastapi>=0.109.1,<1.0.0",
14-
"sqlmodel>=0.0.22,<0.1.0",
15-
"pydantic>=2.0.0,<3.0.0",
16-
"pydantic-settings>=2.0.0,<3.0.0",
17-
"requests>=2.32.0,<3.0.0",
18-
"uvicorn>=0.23.0,<1.0.0",
19-
"asyncpg>=0.29.0,<1.0.0",
20-
# Optional
21-
"sentry-sdk[fastapi]>=2.14.0,<3.0.0"
22-
]
12+
dependencies = []
2313

2414
[tool.uv]
2515
dev-dependencies = [
26-
"ruff==0.8.2",
27-
"mypy==1.13.0",
16+
"ruff==0.8.4",
17+
"mypy==1.14.0",
2818
"pre-commit>=3.8.0,<5.0.0"
2919
]
3020

uv.lock

Lines changed: 41 additions & 489 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)