Skip to content

Commit

Permalink
MAINT: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 11, 2024
1 parent 48fd2d2 commit 1e606c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
3 changes: 1 addition & 2 deletions asv_runner/_aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def recvall(sock, size):
data += s
if not s:
raise RuntimeError(
"did not receive data from socket "
"(size {}, got only {!r})".format(size, data)
"did not receive data from socket " f"(size {size}, got only {data!r})"
)
return data

Expand Down
15 changes: 5 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
import shutil

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down Expand Up @@ -59,11 +57,8 @@


# ------------- Copying things
import os
import shutil

docs_source_dir = os.path.abspath(os.path.dirname(__file__))
project_root_dir = os.path.abspath(os.path.join(docs_source_dir, '..', '..'))
changelog_src = os.path.join(project_root_dir, 'CHANGELOG.md')
changelog_dest = os.path.join(docs_source_dir, 'CHANGELOG.md')
project_root_dir = os.path.abspath(os.path.join(docs_source_dir, "..", ".."))
changelog_src = os.path.join(project_root_dir, "CHANGELOG.md")
changelog_dest = os.path.join(docs_source_dir, "CHANGELOG.md")
shutil.copyfile(changelog_src, changelog_dest)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ build-backend = "pdm.backend"

[tool.ruff]
line-length = 88
extend-ignore = [
lint.extend-ignore = [
"E741", # Do not use variables named 'I', 'O', or 'l'
]
select = [
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
Expand Down

0 comments on commit 1e606c4

Please sign in to comment.