diff --git a/.github/.mergify.yml b/.github/.mergify.yml new file mode 100644 index 00000000..ef882e55 --- /dev/null +++ b/.github/.mergify.yml @@ -0,0 +1,9 @@ +pull_request_rules: + - name: Automatic merge on approval + conditions: + - "check-success=build" + - "check-success=test" + - "#check-failure=0" + actions: + merge: + method: merge diff --git a/.github/.pre-commit-config.yaml b/.github/.pre-commit-config.yaml index dd62c4f3..9adff499 100644 --- a/.github/.pre-commit-config.yaml +++ b/.github/.pre-commit-config.yaml @@ -1,13 +1,18 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.291 + rev: v0.0.292 hooks: - id: ruff - #args: [--fix, --exit-non-zero-on-fix] + args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-merge-conflict - - id: check-toml - - id: check-yaml \ No newline at end of file + - id: trailing-whitespace + + - repo: https://github.com/PyCQA/bandit + rev: '1.7.5' + hooks: + - id: bandit + args: ["-c", "pyproject.toml"] \ No newline at end of file diff --git a/cefi/main.py b/cefi/main.py index 7629d5a5..4a3eb9f1 100644 --- a/cefi/main.py +++ b/cefi/main.py @@ -1,4 +1,3 @@ -import ccxt from loguru import logger from cefi import __version__ diff --git a/pyproject.toml b/pyproject.toml index 27956e3c..614c37c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,9 +124,7 @@ omit = [ [tool.bandit] exclude_dirs = ["tests","docs"] - -[tool.bandit.assert_used] -skips = ["*_test.py", "test_*.py"] +skips = ["B101","B104"] [tool.semantic_release]