Skip to content

Commit

Permalink
Merge pull request #849 from geigi/add-ruff
Browse files Browse the repository at this point in the history
Replace flake8 checks with Ruff and show the warning messages onh GH
  • Loading branch information
geigi authored Feb 3, 2024
2 parents 6a80cf8 + aab9d1f commit 699c10c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Checks

on:
push:
branches:
- "main"
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: --exit-zero
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tests

on:
push:
branches:
- "main"
pull_request:

jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/geigi/cozy-ci:main

steps:
- uses: actions/checkout@v4
run: |
pytest
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ skip-magic-trailing-comma = true
[tool.isort]
line_length = 100
profile = "black"
multi_line_output = 3
multi_line_output = 3

[tool.ruff]
line-length = 100
builtins = ["_"]
output-format = "github"
extend-select = ["B", "SIM", "PIE", "C4", "INT", "LOG"]

0 comments on commit 699c10c

Please sign in to comment.