Skip to content

Commit

Permalink
add basic linting using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
msherman64 committed Jan 13, 2025
1 parent d89ab78 commit 3a42dc8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on: push
jobs:
linting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install ruff
- run: ruff check --output-format=github .
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build-system]
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
build-backend = "pbr.build"

[tool.ruff]
line-length = 79

[tool.ruff.lint]
select = [
"E", # pycodestyle (error)
"F", # pyflakes
"G", # flake8-logging-format
"LOG", # flake8-logging
]


ignore = [
"E501", # line too long
"G001", # logging statement uses str.format
"G002", # Logging statement uses `%`
"G004", # logging statement uses f-string
"G010", # Logging statement uses `warn` instead of `warning`
"E741", # Ambiguous variable name
"F401", # imported but unused
"E402", # many files monkeypatch eventlet, so imports not at top of file
]

0 comments on commit 3a42dc8

Please sign in to comment.