Skip to content

Commit 4464e5f

Browse files
committed
switch from pylint to ruff
1 parent be484cd commit 4464e5f

2 files changed

Lines changed: 13 additions & 29 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
run: |
4545
python -m isort --check --diff --color .
4646
47-
- name: pylint check
47+
- name: ruff check
4848
run: |
49-
python -m pylint src/anaflow/
49+
python -m ruff check src/
5050
5151
- name: cython-lint check
5252
run: |

pyproject.toml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test = ["pytest-cov>=3"]
6161
check = [
6262
"black>=25",
6363
"isort[colors]",
64-
"pylint",
64+
"ruff>=0.5.0",
6565
]
6666

6767
[project.urls]
@@ -116,33 +116,17 @@ target-version = [
116116
"def __str__",
117117
]
118118

119-
[tool.pylint]
120-
[tool.pylint.main]
121-
extension-pkg-whitelist = [
122-
"numpy",
123-
"scipy",
124-
]
125-
ignore = "_version.py"
126-
load-plugins = [
127-
"pylint.extensions.no_self_use",
128-
]
129-
130-
[tool.pylint.message_control]
131-
disable = [
132-
"R0801",
133-
]
134-
135-
[tool.pylint.reports]
136-
output-format = "colorized"
119+
[tool.ruff]
120+
line-length = 88
121+
target-version = "py39"
137122

138-
[tool.pylint.design]
139-
max-args = 25
140-
max-locals = 50
141-
max-branches = 30
142-
max-statements = 80
143-
max-attributes = 25
144-
max-public-methods = 75
145-
max-positional-arguments=25
123+
[tool.ruff.lint]
124+
select = [
125+
"E",
126+
"F",
127+
"W",
128+
"I",
129+
]
146130

147131
[tool.cibuildwheel]
148132
# Switch to using build

0 commit comments

Comments
 (0)