Skip to content

Commit

Permalink
Updating tool disables (#3)
Browse files Browse the repository at this point in the history
* Ran 'pre-commit autoupdate'

* Loosened Python 3.12 version to allow any bugfix version

* Updated mypy disables

* Updated pylint disables

* Updated ruff disables
  • Loading branch information
jamesbraza authored Sep 23, 2024
1 parent 83b490c commit 89c97a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
hooks:
- id: black-jupyter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.5
3.12
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ module = [
"jsonschema.*",
"litellm", # SEE: https://github.com/BerriAI/litellm/issues/825
"networkx", # SEE: https://github.com/networkx/networkx/issues/3988
"pybtex.*", # SEE: https://bitbucket.org/pybtex-devs/pybtex/issues/141/type-annotations
"pymupdf", # SEE: https://github.com/pymupdf/PyMuPDF/issues/3361
"pyzotero", # SEE: https://github.com/urschrei/pyzotero/issues/110
"s3fs", # SEE: https://github.com/fsspec/s3fs/issues/383
"setuptools_scm", # SEE: https://github.com/pypa/setuptools_scm/issues/501
"socketio.*", # SEE: https://github.com/miguelgrinberg/python-socketio/issues/1276
Expand Down Expand Up @@ -211,14 +214,17 @@ disable = [
"too-many-return-statements", # Rely on ruff PLR0911 for this
"too-many-statements", # Rely on ruff PLR0915 for this
"ungrouped-imports", # Rely on ruff I001 for this
"unsubscriptable-object", # Buggy, SEE: https://github.com/PyCQA/pylint/issues/3637
"unidiomatic-typecheck", # Rely on ruff E721 for this
"unreachable", # Rely on mypy unreachable for this
"unsubscriptable-object", # Buggy, SEE: https://github.com/pylint-dev/pylint/issues/3637
"unsupported-membership-test", # Buggy, SEE: https://github.com/pylint-dev/pylint/issues/3045
"unused-argument", # Rely on ruff ARG002 for this
"unused-import", # Rely on ruff F401 for this
"unused-variable", # Rely on ruff F841 for this
"unused-wildcard-import", # Wildcard imports are convenient
"wildcard-import", # Wildcard imports are convenient
"wrong-import-order", # Rely on ruff I001 for this
"wrong-import-position", # Rely on ruff E402 for this
]
# Enable the message, report, category or checker with the given id(s).
enable = [
Expand Down Expand Up @@ -272,6 +278,7 @@ extend-select = [
"FURB110",
"FURB113",
"FURB116",
"FURB118",
"FURB131",
"FURB132",
"FURB140",
Expand Down Expand Up @@ -339,6 +346,7 @@ unfixable = [
"ERA001", # While debugging, temporarily commenting code can be useful
"F401", # While debugging, unused imports can be useful
"F841", # While debugging, unused locals can be useful
"TCH004", # While debugging, it can be nice to keep TYPE_CHECKING in-tact
]

[tool.ruff.lint.flake8-annotations]
Expand Down

0 comments on commit 89c97a7

Please sign in to comment.