Skip to content

Commit

Permalink
Use Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 28, 2024
1 parent 2cb4357 commit 5d0460b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 40 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/format.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Ruff

on:
workflow_dispatch:
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
version: 0.6.8
args: 'format --check'
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ homepage = "https://github.com/jziolkowski/tdm"
issue-tracker = "https://github.com/jziolkowski/tdm/issues"
documentation = "https://github.com/jziolkowski/tdm/wiki"

[tool.black]
line-length = 100
target-version = ["py38"]
skip-string-normalization = true

[tool.isort]
profile = "black"
line_length = 100
py_version = 38
use_parentheses = true

[tool.setuptools_scm]
write_to = "tdmgr/_version.py"
local_scheme = "no-local-version"

[project.scripts]
tdmgr = "tdmgr.run:start"

[tool.ruff]
line-length = 100
target-version = "py38"

[tool.ruff.format]
line-ending = "auto"
quote-style = "double"

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
4 changes: 1 addition & 3 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-r requirements.txt
black==24.3.0
flake8==5.0.4
isort==5.10.1
ruff==0.6.8
pytest==7.4.3

0 comments on commit 5d0460b

Please sign in to comment.