Skip to content

Commit

Permalink
fix(ci): remove black, configure pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamhexi committed Sep 20, 2024
1 parent 6dbf30b commit 952a48f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.12'
# see details (matrix, python-version, python-version-file, etc.)
# https://github.com/actions/setup-python

Expand Down Expand Up @@ -48,4 +48,4 @@ jobs:
run: poetry run pylint knowledge_verificator/

- name: Run the automated test
run: poetry run pytest -v
run: poetry run pytest -v
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: 'https://github.com/astral-sh/ruff-pre-commit'
rev: v0.6.6
hooks:
- id: ruff
args:
- '--fix'
- id: ruff-format
- repo: 'https://github.com/pre-commit/mirrors-mypy'
rev: v1.11.2
hooks:
- id: mypy
56 changes: 28 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 952a48f

Please sign in to comment.