From 07f427226d5c8c51a1794dddc0fad5ea8774fb9e Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 1 Aug 2022 06:35:23 +0200 Subject: [PATCH] update devtools (#3446) * update devtools * fix style --- .pre-commit-config.yaml | 4 ++-- ci/check_api_endpoint.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bd66e6986c..6d91922151 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: check-added-large-files - id: mixed-line-ending - repo: https://github.com/pycqa/flake8 - rev: '4.0.1' + rev: '5.0.0' hooks: - id: flake8 additional_dependencies: [ @@ -29,7 +29,7 @@ repos: hooks: - id: isort - repo: https://github.com/jazzband/pip-tools - rev: 6.6.2 + rev: 6.8.0 hooks: - id: pip-compile name: pip-compile requirements-dev.in diff --git a/ci/check_api_endpoint.py b/ci/check_api_endpoint.py index 0bb5618696..ad57ec84fb 100644 --- a/ci/check_api_endpoint.py +++ b/ci/check_api_endpoint.py @@ -11,7 +11,7 @@ print("Testing InvenTree API endpoint") response = requests.get(url) -assert(response.status_code == 200) +assert response.status_code == 200 print("- Response 200 OK") @@ -25,11 +25,11 @@ required_keys = [ ] for key in required_keys: - assert(key in data) + assert key in data print(f"- Found key '{key}'") # Check that the worker is running -assert(data['worker_running']) +assert data['worker_running'] print("- Background worker is operational")