Skip to content

Commit

Permalink
Merge pull request OpenMined#8878 from Smartappli/Linter
Browse files Browse the repository at this point in the history
Linters update
  • Loading branch information
madhavajay authored Jun 3, 2024
2 parents 9e3acff + cac0a22 commit 0a4fb9a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
args: ["--fix=lf"]
exclude: '\.bat|\.csv|\.ps1$|packages/syft/tests/mongomock'

- repo: https://github.com/MarcoGorelli/absolufy-imports
- repo: https://github.com/MarcoGorelli/absolufy-imports # This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
rev: v0.3.1
hooks:
- id: absolufy-imports
Expand Down Expand Up @@ -76,15 +76,15 @@ repos:
always_run: true

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.3
rev: 1.8.5
# nbQA has no files attribute
# files: "^notebooks/(api|tutorials|admin)"
hooks:
- id: nbqa-isort

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.4.3"
rev: "v0.4.7"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -94,7 +94,7 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.0
hooks:
- id: mypy
name: "mypy: syft-cli"
Expand All @@ -119,7 +119,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.0
hooks:
- id: mypy
name: "mypy: grid"
Expand All @@ -144,7 +144,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.0
hooks:
- id: mypy
name: "mypy: syft"
Expand Down Expand Up @@ -175,7 +175,7 @@ repos:
- id: nbstripout
files: "^notebooks/(api|tutorials|admin)"

- repo: https://github.com/pre-commit/mirrors-prettier
- repo: https://github.com/pre-commit/mirrors-prettier # This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
rev: "v3.0.0-alpha.9-for-vscode"
hooks:
- id: prettier
Expand Down
12 changes: 6 additions & 6 deletions packages/syft/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ syft =
pycapnp==2.0.0
pydantic[email]==2.6.0
pydantic-settings==2.2.1
pymongo==4.6.2
pymongo==4.6.3
pynacl==1.5.0
pyzmq>=23.2.1,<=25.1.1
requests==2.32.3
Expand Down Expand Up @@ -91,12 +91,12 @@ data_science =
dev =
%(test_plugins)s
%(telemetry)s
bandit==1.7.7
ruff==0.3.0
importlib-metadata==6.8.0
bandit==1.7.8
ruff==0.4.7
importlib-metadata==7.1.0
isort==5.13.2
mypy==1.7.1
pre-commit==3.6.2
mypy==1.10.0
pre-commit==3.7.1
safety>=2.4.0b2

telemetry =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ deps =
commands =
bandit -r src
# restrictedpython 6.2
safety check -i 60840 -i 54229 -i 54230 -i 42923 -i 54230 -i 54229 -i 62044 -i 65213 -i 54564
safety check -i 70612

[testenv:syft.test.unit]
description = Syft Unit Tests
Expand Down

0 comments on commit 0a4fb9a

Please sign in to comment.