mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
[pre-commit.ci] pre-commit autoupdate (#11402)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.4.4) - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.0.4](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.0.4) - [github.com/abravalheri/validate-pyproject: v0.16 → v0.17](https://github.com/abravalheri/validate-pyproject/compare/v0.16...v0.17) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
c599f6c910
commit
1f368da06d
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: auto-walrus
|
- id: auto-walrus
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.4.3
|
rev: v0.4.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
|
@ -29,7 +29,7 @@ repos:
|
||||||
- tomli
|
- tomli
|
||||||
|
|
||||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
rev: "1.8.0"
|
rev: "2.0.4"
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ repos:
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
||||||
- repo: https://github.com/abravalheri/validate-pyproject
|
- repo: https://github.com/abravalheri/validate-pyproject
|
||||||
rev: v0.16
|
rev: v0.17
|
||||||
hooks:
|
hooks:
|
||||||
- id: validate-pyproject
|
- id: validate-pyproject
|
||||||
|
|
||||||
|
|
|
@ -75,19 +75,43 @@ target-version = "py312"
|
||||||
max-complexity = 17 # default: 10
|
max-complexity = 17 # default: 10
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"arithmetic_analysis/newton_raphson.py" = ["PGH001"]
|
"arithmetic_analysis/newton_raphson.py" = [
|
||||||
"data_structures/binary_tree/binary_search_tree_recursive.py" = ["BLE001"]
|
"PGH001",
|
||||||
"data_structures/hashing/tests/test_hash_map.py" = ["BLE001"]
|
]
|
||||||
"hashes/enigma_machine.py" = ["BLE001"]
|
"data_structures/binary_tree/binary_search_tree_recursive.py" = [
|
||||||
"machine_learning/sequential_minimum_optimization.py" = ["SIM115"]
|
"BLE001",
|
||||||
"matrix/sherman_morrison.py" = ["SIM103"]
|
]
|
||||||
"other/l*u_cache.py" = ["RUF012"]
|
"data_structures/hashing/tests/test_hash_map.py" = [
|
||||||
"physics/newtons_second_law_of_motion.py" = ["BLE001"]
|
"BLE001",
|
||||||
"project_euler/problem_099/sol1.py" = ["SIM115"]
|
]
|
||||||
"sorts/external_sort.py" = ["SIM115"]
|
"hashes/enigma_machine.py" = [
|
||||||
|
"BLE001",
|
||||||
|
]
|
||||||
|
"machine_learning/sequential_minimum_optimization.py" = [
|
||||||
|
"SIM115",
|
||||||
|
]
|
||||||
|
"matrix/sherman_morrison.py" = [
|
||||||
|
"SIM103",
|
||||||
|
]
|
||||||
|
"other/l*u_cache.py" = [
|
||||||
|
"RUF012",
|
||||||
|
]
|
||||||
|
"physics/newtons_second_law_of_motion.py" = [
|
||||||
|
"BLE001",
|
||||||
|
]
|
||||||
|
"project_euler/problem_099/sol1.py" = [
|
||||||
|
"SIM115",
|
||||||
|
]
|
||||||
|
"sorts/external_sort.py" = [
|
||||||
|
"SIM115",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.pylint] # DO NOT INCREASE THESE VALUES
|
[tool.ruff.lint.pylint] # DO NOT INCREASE THESE VALUES
|
||||||
allow-magic-value-types = ["float", "int", "str"]
|
allow-magic-value-types = [
|
||||||
|
"float",
|
||||||
|
"int",
|
||||||
|
"str",
|
||||||
|
]
|
||||||
max-args = 10 # default: 5
|
max-args = 10 # default: 5
|
||||||
max-branches = 20 # default: 12
|
max-branches = 20 # default: 12
|
||||||
max-returns = 8 # default: 6
|
max-returns = 8 # default: 6
|
||||||
|
@ -110,6 +134,6 @@ addopts = [
|
||||||
[tool.coverage.report]
|
[tool.coverage.report]
|
||||||
omit = [
|
omit = [
|
||||||
".env/*",
|
".env/*",
|
||||||
"project_euler/*"
|
"project_euler/*",
|
||||||
]
|
]
|
||||||
sort = "Cover"
|
sort = "Cover"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user