Skip to content

Add ruff and associated fixes #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
import os
import sys
import sphinx_rtd_theme

sys.path.insert(0, os.path.abspath('..'))


Expand Down Expand Up @@ -75,4 +75,4 @@
# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
todo_include_todos = False
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# isort
"I",
"RUF013"
]
ignore = ["E501", "F401"]
3 changes: 2 additions & 1 deletion scholarly/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ._proxy_generator import DOSException, MaxTriesExceededException, ProxyGenerator
from ._scholarly import _Scholarly
from .data_types import Author, Publication
from ._proxy_generator import ProxyGenerator, DOSException, MaxTriesExceededException

scholarly = _Scholarly()
189 changes: 111 additions & 78 deletions scholarly/_navigator.py

Large diffs are not rendered by default.

Loading