-
Notifications
You must be signed in to change notification settings - Fork 22
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
b7ce0fa
commit a92eaff
Showing
391 changed files
with
4,908 additions
and
3,461 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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- uses: pre-commit/[email protected] | ||
|
||
|
||
|
@@ -20,7 +20,7 @@ jobs: | |
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
python-version: ['3.10', '3.11', '3.12', '3.13'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ formats: all | |
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
python: "3.12" | ||
apt_packages: | ||
- graphviz | ||
|
||
|
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,77 +1,113 @@ | ||
|
||
line-length = 120 | ||
indent-width = 4 | ||
line-length = 120 | ||
|
||
target-version = "py38" | ||
src = ["src", "test"] | ||
|
||
target-version = "py310" | ||
|
||
extend-exclude = [ | ||
"__init__.py", | ||
"src/__test_*.py" | ||
src = [ | ||
"src", | ||
"tests" | ||
] | ||
extend-exclude = ["src/__test_*.py"] | ||
|
||
|
||
[lint] | ||
select = [ | ||
"E", "W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w | ||
"I", # https://docs.astral.sh/ruff/rules/#isort-i | ||
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up | ||
|
||
"A", # https://docs.astral.sh/ruff/rules/#flake8-builtins-a | ||
"ASYNC", # https://docs.astral.sh/ruff/rules/#flake8-async-async | ||
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4 | ||
"EM", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em | ||
"FIX", # https://docs.astral.sh/ruff/rules/#flake8-fixme-fix | ||
"INP", # https://docs.astral.sh/ruff/rules/#flake8-no-pep420-inp | ||
"ISC", # https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc | ||
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie | ||
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt | ||
"PTH", # https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth | ||
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret | ||
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim | ||
"SLOT", # https://docs.astral.sh/ruff/rules/#flake8-slots-slot | ||
"T10", # https://docs.astral.sh/ruff/rules/#flake8-debugger-t10 | ||
"TCH", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch | ||
"TD", # https://docs.astral.sh/ruff/rules/#flake8-todos-td | ||
|
||
"TRY", # https://docs.astral.sh/ruff/rules/#tryceratops-try | ||
"FLY", # https://docs.astral.sh/ruff/rules/#flynt-fly | ||
"PERF", # https://docs.astral.sh/ruff/rules/#perflint-perf | ||
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf | ||
|
||
# "PL", # https://docs.astral.sh/ruff/rules/#pylint-pl | ||
# "FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb | ||
] | ||
select = ["ALL"] | ||
|
||
ignore = [ | ||
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d | ||
"T20", # https://docs.astral.sh/ruff/rules/#flake8-print-t20 | ||
"DTZ", # https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz | ||
"SLF", # https://docs.astral.sh/ruff/rules/#flake8-self-slf | ||
|
||
"RET501", # https://docs.astral.sh/ruff/rules/unnecessary-return-none/#unnecessary-return-none-ret501 | ||
"TRY400", # https://docs.astral.sh/ruff/rules/error-instead-of-exception/ | ||
|
||
"A003", # https://docs.astral.sh/ruff/rules/builtin-attribute-shadowing/ | ||
# https://docs.astral.sh/ruff/rules/#flake8-builtins-a | ||
"A003", # Python builtin is shadowed by class attribute {name} from {row} | ||
|
||
# https://docs.astral.sh/ruff/rules/#pyflakes-f | ||
"F401", # {name} imported but unused; consider using importlib.util.find_spec to test for availability | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-bandit-s | ||
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes | ||
|
||
# https://docs.astral.sh/ruff/rules/#pyupgrade-up | ||
"UP038", # Use X | Y in {} call instead of (X, Y) | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN101", # Missing type annotation for {name} in method | ||
"ANN102", # Missing type annotation for {name} in classmethod | ||
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name} | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-blind-except-ble | ||
"BLE001", # Do not catch blind exception: {name} | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-raise-rse | ||
"RSE102", # Unnecessary parentheses on raised exception | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-commas-com | ||
"COM812", # Trailing comma missing | ||
"COM819", # Trailing comma prohibited | ||
|
||
# https://docs.astral.sh/ruff/rules/#warning-w_1 | ||
"PLW0603", # Using the global statement to update {name} is discouraged | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-logging-format-g | ||
"G004", # Logging statement uses f-string | ||
|
||
# https://docs.astral.sh/ruff/rules/#refactor-r | ||
"PLR1711", # Useless return statement at end of function | ||
|
||
# https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf | ||
"RUF005", # Consider {expression} instead of concatenation | ||
|
||
# https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt | ||
"PT007", # Wrong values type in @pytest.mark.parametrize expected {values} of {row} | ||
] | ||
|
||
|
||
[format] | ||
# Use single quotes for non-triple-quoted strings. | ||
quote-style = "single" | ||
|
||
|
||
# https://docs.astral.sh/ruff/settings/#lintflake8-quotes | ||
[lint.flake8-quotes] | ||
inline-quotes = "single" | ||
inline-quotes = "single" | ||
multiline-quotes = "single" | ||
|
||
|
||
[lint.flake8-builtins] | ||
builtins-ignorelist = ["id", "input"] | ||
|
||
|
||
# https://docs.astral.sh/ruff/settings/#lintisort | ||
[lint.isort] | ||
lines-after-imports = 2 # https://docs.astral.sh/ruff/settings/#lint_isort_lines-after-imports | ||
|
||
|
||
[lint.per-file-ignores] | ||
"docs/conf.py" = ["INP001", "A001"] | ||
"docs/conf.py" = [ | ||
"INP001", # File `conf.py` is part of an implicit namespace package. Add an `__init__.py`. | ||
"A001", # Variable `copyright` is shadowing a Python builtin | ||
"PTH118", # `os.path.join()` should be replaced by `Path` with `/` operator | ||
"PTH100", # `os.path.abspath()` should be replaced by `Path.resolve()` | ||
] | ||
|
||
"setup.py" = ["PTH123"] | ||
|
||
"run/**" = ["INP001"] | ||
|
||
"tests/*" = [ | ||
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
|
||
[lint.isort] | ||
# https://docs.astral.sh/ruff/settings/#isort-lines-after-imports | ||
lines-after-imports = 2 | ||
# https://docs.astral.sh/ruff/rules/#flake8-bandit-s | ||
"S101", # Use of assert detected | ||
|
||
# https://docs.astral.sh/ruff/rules/#refactor-r | ||
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable | ||
"PLR0913", # Too many arguments in function definition ({c_args} > {max_args}) | ||
] | ||
|
||
"interface_*.py" = [ | ||
"F401" # F401 [*] {name} imported but unused | ||
] |
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
Oops, something went wrong.