mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-07 19:18:35 +03:00
feat: migrate flake8 -> ruff
This commit is contained in:
4
.flake8
4
.flake8
@@ -1,4 +0,0 @@
|
||||
[flake8]
|
||||
max-line-length = 88
|
||||
extend-ignore = E203
|
||||
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,app/alembic/versions
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -13,10 +13,8 @@ jobs:
|
||||
cache: 'pip'
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
- run: pip install -e .[web,tooling]
|
||||
- run: black --check app
|
||||
- run: isort --check app
|
||||
- run: flake8 app
|
||||
- run: mypy app
|
||||
- run: make lint
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test
|
||||
|
||||
5
Makefile
5
Makefile
@@ -7,10 +7,11 @@ dev:
|
||||
|
||||
fmt:
|
||||
black app
|
||||
isort app
|
||||
ruff check app --fix
|
||||
|
||||
lint:
|
||||
flake8 app
|
||||
black --check app
|
||||
ruff check app
|
||||
mypy app
|
||||
|
||||
test:
|
||||
|
||||
@@ -26,9 +26,8 @@ worker=[
|
||||
tooling = [
|
||||
# code formatting
|
||||
"black ==23.3.0",
|
||||
"isort ==5.12.0",
|
||||
# linting
|
||||
"flake8 ==6.0.0",
|
||||
"ruff ==0.0.275",
|
||||
# tests
|
||||
"httpx",
|
||||
"sqlalchemy-utils ==0.41.1",
|
||||
@@ -39,8 +38,5 @@ tooling = [
|
||||
"types-requests ==2.31.0.1"
|
||||
]
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
|
||||
[tool.setuptools]
|
||||
py-modules = []
|
||||
|
||||
Reference in New Issue
Block a user