Skip to content

Commit 2d6ad16

Browse files
committed
Add ruff and associated fixes
Signed-off-by: cyy <[email protected]>
1 parent 568d4ad commit 2d6ad16

11 files changed

+1532
-1086
lines changed

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
import os
1414
import sys
15-
import sphinx_rtd_theme
15+
1616
sys.path.insert(0, os.path.abspath('..'))
1717

1818

@@ -75,4 +75,4 @@
7575
# -- Options for todo extension ----------------------------------------------
7676

7777
# If true, `todo` and `todoList` produce output, else they produce nothing.
78-
todo_include_todos = False
78+
todo_include_todos = False

pyproject.toml

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
[build-system]
22
requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.ruff]
6+
target-version = "py39"
7+
[tool.ruff.lint]
8+
select = [
9+
# pycodestyle
10+
"E",
11+
# Pyflakes
12+
"F",
13+
# pyupgrade
14+
"UP",
15+
# flake8-bugbear
16+
"B",
17+
# isort
18+
"I",
19+
"RUF013"
20+
]
21+
ignore = ["E501", "F401"]

scholarly/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
from ._proxy_generator import DOSException, MaxTriesExceededException, ProxyGenerator
12
from ._scholarly import _Scholarly
23
from .data_types import Author, Publication
3-
from ._proxy_generator import ProxyGenerator, DOSException, MaxTriesExceededException
4+
45
scholarly = _Scholarly()

scholarly/_navigator.py

+111-78
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)