Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Run linting
if: matrix.linter-env == 'linting'
run: |
uv run pylint src/bo4e
uv run pylint generate_or_validate_json_schemas.py
uv run ruff check src/bo4e
uv run ruff check generate_or_validate_json_schemas.py
- name: Run type_check
if: matrix.linter-env == 'type_check'
run: |
Expand Down
15 changes: 6 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 25.1.0 # Replace by any tag/version: https://github.com/psf/black/tags
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1 # Replace by any tag/version: https://github.com/astral-sh/ruff-pre-commit/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pycqa/isort
rev: 9.0.0b1
hooks:
- id: isort
name: isort (python)
- id: ruff-check
args: [--fix]
files: ^(src/bo4e|generate_or_validate_json_schemas\.py)
- id: ruff-format
Loading
Loading