Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
abhabongse committed Mar 30, 2024
1 parent 89fdd0d commit 461062a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/python-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ on:
branches: [ main ]

jobs:
poetry-check:
ruff:
name: Ruff code linting and formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
poetry:
name: Poetry check
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -39,12 +45,6 @@ jobs:
- name: Run poetry check
run: |
poetry check
ruff:
name: Ruff code linting and formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
pytest:
name: Pytest unit testing
strategy:
Expand Down
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ quote-style = "preserve"
skip-magic-trailing-comma = true

[tool.ruff.lint]
ignore = ["COM812", "ISC001"]
ignore = ["COM812", "ISC001"] # conflicting with ruff formatter
select = [
"F", "E", "W", "C90", "I", "UP", "ASYNC",
"S", "BLE", "FBT003", "B", "A", "COM", "C4", "FA",
"ISC", "ICN", "G", "PT", "RSE", "RET", "SLOT",
"SIM101", "SIM105", "SIM107", "SIM110", "SIM113",
"SIM115", "SIM117", "SIM118", "SIM2", "SIM3",
"SIM4", "SIM9", "TID", "TCH", "PTH", "PD", "PGH",
"F", "E", "W", "C90", "I", "UP", "ASYNC", "S", "BLE", "FBT003", "B", "A",
"COM", "C4", "FA", "ISC", "ICN", "G", "PT", "RSE", "RET", "SLOT",
"SIM101", "SIM105", "SIM107", "SIM110", "SIM113", "SIM115", "SIM117",
"SIM118", "SIM2", "SIM3", "SIM4", "SIM9", "TID", "TCH", "PTH", "PD", "PGH",
"PL", "FLY", "PERF", "RUF",
]

Expand Down

0 comments on commit 461062a

Please sign in to comment.