diff --git a/.github/workflows/check-code-quality.yml b/.github/workflows/check-code-quality.yml new file mode 100644 index 0000000..d111d78 --- /dev/null +++ b/.github/workflows/check-code-quality.yml @@ -0,0 +1,40 @@ +name: check-code-quality + +on: + pull_request: + push: + branches: + - 'main' + - 'feature/**' + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 + +# repos: +# - repo: https://github.com/pre-commit/pre-commit-hooks +# rev: v2.3.0 +# hooks: +# - id: check-ast +# - id: check-json +# - id: check-toml +# - id: check-xml +# - id: check-yaml +# - id: check-builtin-literals +# - id: check-case-conflict +# - id: check-docstring-first +# - id: detect-private-key +# - id: double-quote-string-fixer +# - id: end-of-file-fixer +# - id: name-tests-test +# - id: pretty-format-json +# - id: trailing-whitespace + +# - repo: https://github.com/astral-sh/ruff-pre-commit +# rev: v0.0.284 +# hooks: +# - id: ruff