Skip to content

Commit 233a93e

Browse files
committed
Upgrade tox lint from flake8 to ruff
1 parent 8063947 commit 233a93e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

docs/source/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
# serve to show the default.
1414

1515
import datetime
16-
import sys
17-
import os
18-
import shlex
1916

2017
# If extensions (or modules to document with autodoc) are in another directory,
2118
# add these directories to sys.path here. If the directory is relative to the

src/brotlicffi/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# flake8: noqa
3-
from ._api import (
2+
from ._api import ( # noqa: F401
43
decompress, Decompressor, compress, BrotliEncoderMode, DEFAULT_MODE,
54
Compressor, MODE_GENERIC, MODE_TEXT, MODE_FONT, error, Error
65
)

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ commands= py.test {toxinidir}/test/
1111

1212
[testenv:lint]
1313
basepython=python3
14-
deps = flake8
15-
commands = flake8 --max-complexity 10 src/brotlicffi test
14+
deps = ruff
15+
commands = ruff check --exclude=libbrotli --extend-select=C90

0 commit comments

Comments
 (0)