Skip to content

Commit 6e6b691

Browse files
committed
Python bootstrap v1.0.2
1 parent 53ad6fc commit 6e6b691

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/Tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
if: matrix.python == '3.12'
4242
uses: codecov/codecov-action@v3
4343
with:
44+
fail_ci_if_error: true
4445
token: ${{ secrets.CODECOV_TOKEN }}
4546

4647
build_python:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ apk add ffmpeg gifsicle libmagic wget libjpeg
5555

5656
# Contribution
5757

58-
This project adheres to openZIM's [Contribution Guidelines](https://github.com/openzim/overview/wiki/Contributing)
58+
This project adheres to openZIM's [Contribution Guidelines](https://github.com/openzim/overview/wiki/Contributing).
59+
60+
This project has implemented openZIM's [Python bootstrap, conventions and policies](https://github.com/openzim/_python-bootstrap/docs/Policy.md) **v1.0.2**.
5961

6062
```shell
6163
pip install hatch

tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def report_cov(ctx: Context, *, html: bool = False):
2424
"""report coverage"""
2525
ctx.run("coverage combine", warn=True, pty=use_pty)
2626
ctx.run("coverage report --show-missing", pty=use_pty)
27+
ctx.run("coverage xml", pty=use_pty)
2728
if html:
2829
ctx.run("coverage html", pty=use_pty)
2930

@@ -92,7 +93,7 @@ def fix_black(ctx: Context, args: str = "."):
9293
def fix_ruff(ctx: Context, args: str = "."):
9394
"""fix all ruff rules"""
9495
args = args or "." # needed for hatch script
95-
ctx.run(f"ruff --fix {args}", pty=use_pty)
96+
ctx.run(f"ruff check --fix {args}", pty=use_pty)
9697

9798

9899
@task(

0 commit comments

Comments
 (0)