[stable/2023.2] Transition to Tox (#1633)

This is an automated cherry-pick of #1617
/assign mnaser
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f42c49e..3cb5d57 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,3 +23,9 @@
     rev: 5.13.2
     hooks:
       - id: isort
+        args: ["--profile", "black", "--filter-files"]
+
+  - repo: https://github.com/ansible/ansible-lint.git
+    rev: v24.7.0
+    hooks:
+      - id: ansible-lint