Skip to content

Commit d5b3ff8

Browse files
committed
refactor(config): migrate to pyproject.toml
- Consolidated configuration by moving pytest options and ruff settings to `pyproject.toml`. - Removed `pytest.ini` and adjusted pre-commit hooks to reflect updated config. - Simplified GitHub Actions workflow by removing unnecessary `working-directory`.
1 parent c26f38b commit d5b3ff8

5 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
run: pip install -q pytest
2828

2929
- name: Run plugin's bin tests
30-
working-directory: plugins/
3130
env:
3231
RUN_INTEGRATION: "1"
33-
run: pytest .
32+
run: pytest plugins/

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ site/
4848
__pycache__/
4949
*.py[cod]
5050
*$py.class
51+
52+
.coverage

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ repos:
7070
hooks:
7171
- id: ruff
7272
name: 🦀 ruff
73-
args: ["--line-length=120", "--fix"]
73+
args: ["--fix"]
7474
- id: ruff-format
7575
name: 🦀 ruff-format
76-
args: ["--line-length=120"]
7776

7877
- repo: https://github.com/codespell-project/codespell
7978
rev: v2.4.2

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[tool.pytest.ini_options]
2+
addopts = [
3+
"--import-mode=importlib",
4+
"--color=yes",
5+
"--doctest-modules",
6+
"--cov=plugins/codemap/bin",
7+
"--cov=plugins/develop/bin",
8+
"--cov=plugins/foundry/bin",
9+
"--cov=plugins/oss/bin",
10+
"--cov=plugins/research/bin",
11+
"--cov-report=term-missing",
12+
"--cov-report=html:.reports/coverage",
13+
]
14+
15+
[tool.ruff]
16+
line-length = 120
17+
18+
[tool.ruff.format]
19+
# inherits line-length from [tool.ruff]

pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)