Skip to content

Commit a15a6e9

Browse files
MAINT: update lock files (#315)
* DX: convert Tox config to native TOML * FIX: downgrade `pygments` and `sphinx-codeautolink` * FIX: remove Codacy badge * FIX: set `CODECOV_TOKEN` * FIX: set `sphinx.configuration` * FIX: update link to `uv.lock` file explanation * MAINT: clean up Codecov config Co-authored-by: GitHub <[email protected]>
1 parent a2bb359 commit a15a6e9

File tree

10 files changed

+535
-510
lines changed

10 files changed

+535
-510
lines changed

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
".pre-commit-config.yaml",
3131
".prettierignore",
3232
".readthedocs.yml",
33+
".taplo.toml",
3334
".vscode/*",
3435
"CITATION.cff",
3536
"codecov.yml",
@@ -50,7 +51,6 @@
5051
"bgcolor",
5152
"cano",
5253
"celltoolbar",
53-
"codacy",
5454
"codecov",
5555
"codemirror",
5656
"colab",

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
macos-python-version: "3.9"
4040
specific-pip-packages: ${{ inputs.specific-pip-packages }}
4141
test-output-path: tests/output/
42+
secrets:
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4244
style:
4345
if: inputs.specific-pip-packages == ''
4446
secrets:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-useless-excludes
1515

1616
- repo: https://github.com/ComPWA/policy
17-
rev: 0.5.8
17+
rev: 0.5.15
1818
hooks:
1919
- id: check-dev-files
2020
args:
@@ -60,7 +60,7 @@ repos:
6060
metadata.vscode
6161
6262
- repo: https://github.com/astral-sh/ruff-pre-commit
63-
rev: v0.8.4
63+
rev: v0.9.1
6464
hooks:
6565
- id: ruff
6666
args: [--fix]
@@ -109,7 +109,7 @@ repos:
109109
- --in-place
110110

111111
- repo: https://github.com/python-jsonschema/check-jsonschema
112-
rev: 0.30.0
112+
rev: 0.31.0
113113
hooks:
114114
- id: check-jsonschema
115115
name: Check CITATION.cff
@@ -153,6 +153,6 @@ repos:
153153
- id: pyright
154154

155155
- repo: https://github.com/astral-sh/uv-pre-commit
156-
rev: 0.5.11
156+
rev: 0.5.18
157157
hooks:
158158
- id: uv-lock

.readthedocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ build:
1313
export UV_LINK_MODE=copy
1414
uv run \
1515
--group doc \
16-
--locked \
1716
--no-dev \
1817
--with tox \
1918
tox -e doc
2019
mkdir -p $READTHEDOCS_OUTPUT
2120
mv docs/_build/html $READTHEDOCS_OUTPUT
21+
22+
sphinx:
23+
configuration: docs/conf.py

.taplo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ compact_inline_tables = true
1010
indent_string = " "
1111
reorder_arrays = true
1212
reorder_keys = true
13+
14+
[[rule]]
15+
include = ["**/pyproject.toml"]
16+
keys = ["tool.tox"]
17+
18+
[rule.formatting]
19+
reorder_arrays = false

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ git clone https://github.com/ComPWA/qrules
1212
cd qrules
1313
```
1414

15-
Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/#project-lockfile).
15+
Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/layout/#the-lockfile).
1616

1717
```shell
1818
uv sync --all-extras

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
[![pytest](https://github.com/ComPWA/qrules/workflows/pytest/badge.svg)](https://github.com/ComPWA/qrules/actions?query=branch%3Amain+workflow%3Apytest)
1717
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy.readthedocs.io)
1818
[![Test coverage](https://codecov.io/gh/ComPWA/qrules/branch/main/graph/badge.svg)](https://codecov.io/gh/ComPWA/qrules)
19-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/deeee5b9e2bb4b3daa655942c71e17da)](https://www.codacy.com/gh/ComPWA/qrules)
2019
[![Spelling checked](https://img.shields.io/badge/cspell-checked-brightgreen.svg)](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell)
2120
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
2221
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

codecov.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
codecov:
2-
require_ci_to_pass: yes
2+
require_ci_to_pass: true
33

44
coverage:
55
precision: 2
@@ -9,33 +9,23 @@ coverage:
99
status:
1010
project:
1111
default:
12-
# basic
13-
target: 85% # can't go below this percentage
14-
threshold: 1% # allow drops by this percentage
12+
target: 85%
13+
threshold: 1%
1514
base: auto
16-
# advanced
17-
branches: null
1815
if_no_uploads: error
1916
if_not_found: success
2017
if_ci_failed: error
2118
only_pulls: false
22-
flags: null
23-
paths: null
2419
patch:
2520
default:
26-
# basic
2721
target: 0
2822
threshold: 5%
2923
base: auto
30-
# advanced
31-
branches: null
3224
if_no_uploads: error
3325
if_not_found: success
3426
if_ci_failed: error
3527
only_pulls: false
36-
flags: null
37-
paths: null
38-
changes: no
28+
changes: false
3929

4030
parsers:
4131
gcov:

0 commit comments

Comments
 (0)