-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add ruff configuration * Deactivate flake8 in precommit * chore: Fixing ruff warnings * ci: Minimal ruff workflow * ci: Replace isort and black by ruff * ci: Disable checks for python 3.7 and 3.8 which are end-of-life * doc: Fix dead link * ci: fix codecov upload
- Loading branch information
1 parent
28faec5
commit 40c2419
Showing
15 changed files
with
165 additions
and
104 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,18 @@ | ||
name: Ruff | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
# Update output format to enable automatic inline annotations. | ||
- name: Run 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Decorator library""" | ||
"""Decorator library.""" | ||
|
||
import functools | ||
import inspect | ||
from typing import Callable | ||
|
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
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
{% | ||
include-markdown "../CONTRIBUTING.md" | ||
%} | ||
|
||
{% | ||
include-markdown "../AUTHORS.md" | ||
%} |
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,47 @@ | ||
line-length = 100 | ||
##extend-exclude = ["*.ipynb", "**/*_pb2.py"] | ||
|
||
[lint] | ||
ignore = [ | ||
"PLR0913", # Too many arguments | ||
"S311", # suspicious-non-cryptographic-random-usage | ||
"G004" # Logging statement uses f-string | ||
] | ||
select = [ | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"DTZ", # flake8-datetimez | ||
"B", | ||
"B9", | ||
"C", | ||
"G", # flake8-logging-format | ||
"PYI", # flake8-pyi | ||
"PT", # flake8-pytest-style | ||
"TCH", # flake8-type-checking | ||
"C90", # MCCabe | ||
"D", # Pydocstyle | ||
"E", # Pycodestyle error | ||
"F", # Pyflakes | ||
"I", # Isort | ||
"N", # pep8-naming | ||
"W", # Pycodestyle warning | ||
# "ANN", # flake8-annotations | ||
"S", # flake8-bandit | ||
"BLE", # flake8-blind-except | ||
"PD", # pandas-vet | ||
"PL", # Pylint | ||
"RUF", # Ruff | ||
] | ||
|
||
[lint.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
"tests/*" = ["ANN", "D", "S101", "PT", "PLR", "PD901"] | ||
"integration_tests/*" = ["ANN", "D", "S101", "PT", "PLR", "PD901"] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" | ||
|
||
#[mccabe] | ||
#max-complexity = 18 | ||
# | ||
# |
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
Oops, something went wrong.