-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update pre-commit hooks (#1119)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.1](astral-sh/ruff-pre-commit@v0.1.14...v0.2.1) * adjusting to pre-commits new constraints --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jim Pivarski <[email protected]>
- Loading branch information
1 parent
c03bbf7
commit 71cca34
Showing
3 changed files
with
13 additions
and
12 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 |
---|---|---|
|
@@ -5,6 +5,9 @@ requires = [ | |
"hatch-vcs" | ||
] | ||
|
||
[lint.mccabe] | ||
max-complexity = 100 | ||
|
||
[project] | ||
authors = [ | ||
{name = "Jim Pivarski", email = "[email protected]"} | ||
|
@@ -114,6 +117,9 @@ exclude = [ | |
"src/uproot/__init__.py", | ||
"docs-sphinx/*.py" | ||
] | ||
src = ["src"] | ||
|
||
[tool.ruff.lint] | ||
ignore = [ | ||
"E501", | ||
"E722", | ||
|
@@ -122,7 +128,7 @@ ignore = [ | |
"SIM118", # key in dict, broken since uproot doesn't behave like a dict | ||
"PGH003", # too-broad type ignore | ||
"SIM114", # combine `if` branches using logical `or` operator | ||
"PGH001", # no eval allowed | ||
"S307", # no eval allowed | ||
"PLC1901", # empty string is falsey (but I don't want to rely on such weak typing) | ||
"RUF012" # enforces type annotations on a codebase that lacks type annotations | ||
] | ||
|
@@ -146,16 +152,10 @@ select = [ | |
"UP", # pyupgrade | ||
"YTT" # flake8-2020 | ||
] | ||
src = ["src"] | ||
|
||
[tool.ruff.lint] | ||
isort.required-imports = ["from __future__ import annotations"] | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 100 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"dev/*" = ["T20"] | ||
[tool.ruff.lint.per-file-ignores] | ||
"dev/*" = ["T20", "T201"] | ||
"src/uproot/*/file.py" = ["SIM115"] | ||
|
||
[tool.setuptools_scm] | ||
|
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