Skip to content

Commit

Permalink
MAINT: Remove black, switch to py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 11, 2024
1 parent a77de2a commit ff0379d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'
- run: pip wheel -w ./wheelhouse/ .

- uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Core Python benchmark code for `asv`.

**This package shall not have any dependencies on external packages and must be
compatible with all Python versions greater than or equal to `3.7`.**
compatible with all Python versions greater than or equal to `3.8`.**


For other functionality, refer to the `asv` package or consider writing an extension.
Expand Down
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
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers = [
]
version = "0.1.0"
dependencies = [] # Make sure there's nothing here
requires-python = ">=3.7"
requires-python = ">=3.8"
readme = "README.md"
license = {text = "BSD-3-Clause"}

Expand All @@ -31,13 +31,12 @@ docs = [
'sphinx-design',
'sphinx-autobuild',
'sphinxcontrib-spelling',
"myst-parser>=2", # Needs python >= 3.8
"sphinx-autodoc2>=0.4.2", # Needs python >= 3.8
"myst-parser>=2",
"sphinx-autodoc2>=0.4.2",
]
[tool.pdm.dev-dependencies]
lint = [
"ruff",
"black",
]
[build-system]
requires = ["pdm-backend"]
Expand All @@ -55,15 +54,11 @@ select = [
"I001", # isort
]

[tool.black]
line-length = 88
target-version = ['py37']

[tool.setuptools_scm]
write_to = "asv_runner/_version.py"

[tool.pdm.scripts]
lint = {composite = ["ruff --fix asv_runner/", "black asv_runner/"]}
lint = {composite = ["ruff --fix --unsafe-fixes asv_runner/", "ruff format asv_runner/"]}
mkdoc = {composite = ["sphinx-build -b html docs/source docs/build/html"]}

[project.urls]
Expand Down

0 comments on commit ff0379d

Please sign in to comment.