Skip to content

Commit

Permalink
Address ruff deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Mar 2, 2024
1 parent 7037961 commit 7c10477
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
run: venv/bin/black --check --diff --verbose .

- name: Run ruff
run: venv/bin/ruff --output-format=github .
run: venv/bin/ruff check --output-format=github .

- name: Run mypy
run: venv/bin/mypy .
Expand Down
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace :lint do
desc 'Lint Python files with ruff'
task python: :'venv:create' do
sh 'venv/bin/mypy .'
sh 'venv/bin/ruff .'
sh 'venv/bin/ruff check .'
end
end

Expand All @@ -28,7 +28,7 @@ namespace :format do
desc 'Format Python files with black and ruff'
task python: :'venv:create' do
sh 'venv/bin/black .'
sh 'venv/bin/ruff --fix .'
sh 'venv/bin/ruff check --fix .'
end

desc 'Format text, YAML, and Markdown sources with prettier'
Expand All @@ -44,7 +44,7 @@ namespace :fmt do
desc 'Format Python files with black and ruff'
task python: :'venv:create' do
sh 'venv/bin/black .'
sh 'venv/bin/ruff --fix .'
sh 'venv/bin/ruff check --fix .'
end

desc 'Format text, YAML, and Markdown sources with prettier'
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ ignore_missing_imports = true

[tool.ruff]
target-version = "py312"

[tool.ruff.lint]
select = ["ALL"]
ignore = ["COM812", "D", "EM", "S603", "T201", "TRY003", "UP007"]

0 comments on commit 7c10477

Please sign in to comment.