Skip to content

Commit 4647c73

Browse files
committed
add ruff to CI config
1 parent a7200f2 commit 4647c73

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.github/workflows/ci_extra.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
- name: Lint with pycodestyle
3232
run: |
3333
pycodestyle pyformlang || true
34+
- name: Lint with ruff
35+
run: |
36+
ruff check pyformlang || true
37+
3438
- name: Check with pyright
3539
run: |
3640
pyright --stats pyformlang

.github/workflows/ci_feature.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
- name: Lint with pycodestyle
3636
run: |
3737
pycodestyle pyformlang || true
38+
- name: Lint with ruff
39+
run: |
40+
ruff check pyformlang || true
41+
3842
- name: Check with pyright
3943
run: |
4044
pyright --stats pyformlang

.github/workflows/ci_master.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
- name: Lint with pycodestyle
3535
run: |
3636
pycodestyle pyformlang || true
37+
- name: Lint with ruff
38+
run: |
39+
ruff check pyformlang || true
40+
3741
- name: Check with pyright
3842
run: |
3943
pyright --stats pyformlang

pyrightconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": [
33
"pyformlang"
44
],
5-
5+
66
"exclude": [
77
"**/node_modules",
88
"**/__pycache__",
@@ -12,7 +12,7 @@
1212

1313
"pythonVersion": "3.8",
1414
"pythonPlatform": "Linux",
15-
15+
1616
"strictListInference": true,
1717
"strictSetInference": true,
1818
"strictDictionaryInference": true,

ruff.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
include = ["pyformlang"]
2-
31
exclude = [
42
".bzr",
53
".direnv",

0 commit comments

Comments
 (0)