Skip to content

Commit 4af6135

Browse files
committed
INTPYTHON-380 Add task runner and project manager
1 parent 74323f1 commit 4af6135

File tree

5 files changed

+837
-3
lines changed

5 files changed

+837
-3
lines changed

.github/workflows/test-python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
static:
21-
runs-on: "ubuntu-latest"
21+
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -33,6 +33,7 @@ jobs:
3333
- run: just install
3434
- run: just lint
3535
- run: just docs
36+
- run: uv run pre-commit run --hook-stage manual --all-files
3637
build:
3738
runs-on: ${{ matrix.os }}
3839
strategy:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ repos:
4141
hooks:
4242
# Run the linter.
4343
- id: ruff
44-
args: [ --fix ]
44+
args: [ --fix, --show-fixes ]
4545
# Run the formatter.
4646
- id: ruff-format

justfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
set shell := ["bash", "-c"]
2+
3+
# Default target executed when no arguments are given.
4+
[private]
5+
default:
6+
@just --list
7+
8+
install:
9+
uv sync --frozen
10+
uv run pre-commit install
11+
12+
test *args:
13+
uv run pytest {{args}}
14+
15+
lint:
16+
uv run pre-commit run ruff --files
17+
uv run pre-commit run ruff-format --files
18+
19+
docs:
20+
uv run sphinx-build -T -b html docs docs/_build

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ include = [
4545
"/flask_pymongo",
4646
]
4747

48-
4948
[tool.ruff.lint]
5049
select = [
5150
"E", # pycodestyle

0 commit comments

Comments
 (0)