diff --git a/.gitignore b/.gitignore index d8fc8b5..80fca7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ __pycache__ *.toml *.conf +.venv +src +uv.lock diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0e3640..191c7e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,10 @@ repos: -- repo: https://github.com/psf/black - rev: 22.6.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.6.2 hooks: - - id: black - language_version: python3.10 -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v1.2.3 - hooks: - - id: flake8 -- repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: - - id: isort - name: isort (python) + # Run the linter. + - id: ruff + args: [--fix] + # Run the formatter. + - id: ruff-format