Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqueDaniel committed Dec 27, 2023
1 parent 52abaff commit 08f8952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
MIN_SUPPORTED_PYTHON: "3.8"
PYTHON_DEPENDENCIES: ".[dev]"

jobs:
lint:
Expand All @@ -20,7 +21,7 @@ jobs:
python-version: ${{ env.MIN_SUPPORTED_PYTHON }}
cache: pip
- name: Install dependencies
run: python -m pip install ruff mypy
run: python -m pip install $PYTHON_DEPENDENCIES
- name: Lint (ruff)
run: ruff check --output-format github .
- name: Lint (mypy)
Expand All @@ -36,7 +37,7 @@ jobs:
python-version: ${{ env.MIN_SUPPORTED_PYTHON }}
cache: pip
- name: Install dependencies
run: python -m pip install black isort
run: python -m pip install $PYTHON_DEPENDENCIES
- name: Format (black)
run: python -m black --check --diff .
- name: Format (isort)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ select = ["F", "E", "W", "C", "B", "N"]
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = ["./build"]
exclude = ["build"]

[[tool.mypy.overrides]]
module = ["deepl"]
Expand Down

0 comments on commit 08f8952

Please sign in to comment.