forked from openstack/blazar-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add minimal pyproject.yaml to configure tools * modern pip will stop supporting installation in editable mode of a git url source * comment out ignores * add linter workflow * update ruff output format
- Loading branch information
1 parent
272f2da
commit a8b78d3
Showing
3 changed files
with
40 additions
and
1 deletion.
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,28 @@ | ||
[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 | ||
# "G002", # Logging statement uses `%` | ||
# "G004", # logging statement uses f-string | ||
# "E741", # Ambiguous variable name | ||
# "F401", # imported but unused | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"blazar_dashboard/test/settings.py" = [ | ||
# "F405", #HORIZON_CONFIG` may be undefined, or defined from star imports | ||
] |
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