forked from openstack/blazar
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d89ab78
commit 3a42dc8
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
] |