Skip to content

Commit

Permalink
chore: enable the ci check (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Jun 4, 2024
1 parent f43505c commit d787937
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ on:
branches: [ "main" ]
paths:
- '.github/workflows/python_check.yml'
- 'bindings/python/src/**'
- 'bindings/python/tests/**'
- 'bindings/python/pyproject.toml'
- 'bindings/python/pdm.lock'
- 'src/**'
- 'tests/**'
- 'pyproject.toml'
- 'pdm.lock'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/python_check.yml'
- 'bindings/python/src/**'
- 'bindings/python/tests/**'
- 'bindings/python/pyproject.toml'
- 'bindings/python/pdm.lock'
- 'src/**'
- 'tests/**'
- 'pyproject.toml'
- 'pdm.lock'
merge_group:
workflow_dispatch:

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ Run test in all environment:
```bash
tox run
```
>>>>>>> eb2c25d (init: first commit)
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ test = ["pytest>=7.4.3"]
test = "pytest tests/"
format = "ruff format ."
fix = "ruff --fix ."
check = { composite = ["ruff format . --check", "ruff ."] }
check = { composite = ["ruff format . --check", "ruff check ."] }

[tool.ruff]
select = [
lint.select = [
"E", #https://docs.astral.sh/ruff/rules/#error-e
"F", #https://docs.astral.sh/ruff/rules/#pyflakes-f
"I", #https://docs.astral.sh/ruff/rules/#isort-i
Expand All @@ -53,7 +53,7 @@ select = [
"NPY", #https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
"RUF", #https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
ignore = ["S101", "E731", "E501"]
lint.ignore = ["S101", "E731", "E501"]
src = ["src"]

[tool.pytest.ini_options]
Expand Down

0 comments on commit d787937

Please sign in to comment.