Skip to content

Commit

Permalink
Adding ruff to ci.yml (#21)
Browse files Browse the repository at this point in the history
* added ruff in pyproject.toml & ci.yml

* removed comments in ci.yml and pyproject.toml
  • Loading branch information
alckasoc authored Sep 26, 2023
1 parent 47897ad commit 11a1a33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
run: |
black --check sleap_nn tests
- name: Run pydocstyle
- name: Run ruff
run: |
pydocstyle --convention=google sleap_nn/
ruff check sleap_nn/
# Tests with pytest
tests:
Expand Down
13 changes: 10 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ dev = [
"toml",
"twine",
"build",
"ipython"
"ipython",
"ruff"
]

[project.scripts]
Expand All @@ -56,6 +57,12 @@ Repository = "https://github.com/talmolab/sleap-nn"
[tool.black]
line-length = 88

[pydocstyle]
[tool.ruff]
format = "github"
select = [
"D", # pydocstyle
]
target-version = "py39"

[tool.ruff.pydocstyle]
convention = "google"
match-dir = "sleap_nn"

0 comments on commit 11a1a33

Please sign in to comment.