Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 5fd989dd authored by Dorian Turba's avatar Dorian Turba
Browse files

update pre-commit

parent a8d45eb0
Branches 4-bump-code-server-to-4-16-1
No related tags found
No related merge requests found
Pipeline #24066 passed
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: [--check, --diff, --quiet]
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [--check-only]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
exclude: ^tests/
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: [ --check, --diff, --quiet ]
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [ --check-only ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
exclude: ^tests/
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.13.3
hooks:
- id: pymarkdown
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
- repo: https://github.com/pre-commit/pre-commit-hooks/
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: check-docstring-first
\ No newline at end of file
......@@ -13,6 +13,7 @@ This file is for:
### Installation
```bash
pip install --upgrade pip
pip install -e .[ALL]
pre-commit install
```
......@@ -20,6 +21,7 @@ pre-commit install
Run pre-commit hooks on all files:
```bash
pre-commit autoupdate
pre-commit run --all-files
```
......@@ -29,6 +31,8 @@ This will run the following hooks:
- `flake8`
- `isort`
- `mypy`
- `ruff`
- `pymarkdown`
### Running tests
......@@ -39,6 +43,7 @@ pytest
# Generating distribution archives
```bash
pip install --upgrade pip
pip install --upgrade build
python -m build
```
......@@ -46,6 +51,7 @@ python -m build
# Pypi share
```bash
pip install --upgrade pip
pip install --upgrade twine
python -m twine upload --repository pypi dist/*
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment