-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
- Loading branch information
Showing
4 changed files
with
95 additions
and
22 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,34 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
env: | ||
DEFAULT_PYTHON: "3.12" | ||
|
||
jobs: | ||
ruff: | ||
name: Check ruff | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.DEFAULT_PYTHON }} | ||
|
||
- name: Upgrade pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip --version | ||
- name: Install ruff | ||
run: | | ||
pip install ruff | ||
- name: Run ruff | ||
run: | | ||
ruff check homeconnect |
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
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
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,27 @@ | ||
[tool.ruff.lint] | ||
select = [ | ||
"D", # docstrings | ||
"E", # pycodestyle | ||
"G", # flake8-logging-format | ||
"I", # isort | ||
"W", # pycodestyle | ||
] | ||
|
||
ignore = [ | ||
"D100", # Missing docstring in public module | ||
"D101", # Missing docstring in public class | ||
"D102", # Missing docstring in public method | ||
"D104", # Missing docstring in public package | ||
"D105", # Missing docstring in magic method | ||
"D107", # Missing docstring in `__init__` | ||
"D202", # No blank lines allowed aftee function docstring | ||
"D203", # 1 blank line required before class docstring | ||
"D213", # Multi-line docstring summary should start at the second line | ||
"D401", # First line should be in imperative mood | ||
"E722", # Do not use bare `except` | ||
] | ||
|
||
[tool.ruff.lint.isort] | ||
force-sort-within-sections = true | ||
combine-as-imports = true | ||
split-on-trailing-comma = false |