diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58ee2ed..a08529c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.2.1 hooks: - id: ruff args: @@ -20,13 +20,17 @@ repos: rev: v4.5.0 hooks: - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + - id: check-yaml + - id: check-json + - id: check-toml + - id: pretty-format-json + args: + - --no-sort-keys - id: no-commit-to-branch args: - --branch=master - - repo: https://github.com/adrienverge/yamllint.git - rev: v1.33.0 - hooks: - - id: yamllint - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: diff --git a/.yamllint b/.yamllint deleted file mode 100644 index 96b89d6..0000000 --- a/.yamllint +++ /dev/null @@ -1,59 +0,0 @@ -rules: - braces: - level: error - min-spaces-inside: 0 - max-spaces-inside: 1 - min-spaces-inside-empty: -1 - max-spaces-inside-empty: -1 - brackets: - level: error - min-spaces-inside: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: -1 - max-spaces-inside-empty: -1 - colons: - level: error - max-spaces-before: 0 - max-spaces-after: 1 - commas: - level: error - max-spaces-before: 0 - min-spaces-after: 1 - max-spaces-after: 1 - comments: - level: error - require-starting-space: true - min-spaces-from-content: 2 - comments-indentation: - level: error - document-end: - level: error - present: false - document-start: - level: error - present: false - empty-lines: - level: error - max: 1 - max-start: 0 - max-end: 1 - hyphens: - level: error - max-spaces-after: 1 - indentation: - level: error - spaces: 2 - indent-sequences: true - check-multi-line-strings: false - key-duplicates: - level: error - line-length: disable - new-line-at-end-of-file: - level: error - new-lines: - level: error - type: unix - trailing-spaces: - level: error - truthy: - disable diff --git a/requirements-test.txt b/requirements-test.txt index 3b643f9..79adff7 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -6,4 +6,4 @@ pytest-cov==4.1.0 pytest-error-for-skips==2.0.2 pytest-timeout==2.2.0 pytest==7.4.4 -ruff==0.2.0 +ruff==0.2.1