Skip to content

Commit

Permalink
Merge 6a9454d into 73f52be
Browse files Browse the repository at this point in the history
  • Loading branch information
marcules committed Dec 14, 2022
2 parents 73f52be + 6a9454d commit 341f426
Show file tree
Hide file tree
Showing 11 changed files with 1,505 additions and 314 deletions.
27 changes: 19 additions & 8 deletions .pre-commit-config.yaml
@@ -1,27 +1,38 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/ambv/black
rev: 21.12b0
rev: 22.12.0
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
rev: v0.910
hooks:
- name: Run mypy static analysis tool
id: mypy
args: [--no-warn-unused-ignores, --ignore-missing-imports]
files: src
- repo: https://github.com/flakehell/flakehell/
rev: v.0.9.0
additional_dependencies:
- pydantic
args:
- --no-warn-unused-ignores
- --ignore-missing-imports
# Only in this pre-commit hook, it is necessary to set this argument, it is working as intended in the normal `pdm run mypy` run:
# mypy doesn't pick up the pyproject.toml configuration in the pre-commit hook, which already has this option enabled
- --allow-untyped-decorators
# Only in this pre-commit hook, it is working as intended in the normal `pdm run mypy` run:
# mypy doesn't recognize the ConfigSchema type and gives the error
# Class cannot subclass "ConfigSchema" (has type "Any")
- --allow-subclassing-any
- repo: https://github.com/flakeheaven/flakeheaven
rev: 0.11.1
hooks:
- name: Run flakehell static analysis tool
id: flakehell
- name: Run flakeheaven static analysis tool
id: flakeheaven
4 changes: 2 additions & 2 deletions pdm.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -28,6 +28,7 @@ requires-python = ">=3.7"
dependencies = [
"click>=8.0.3",
"ruyaml>=0.91.0",
"maison>=1.4.0",
]
name = "yamlfix"
description = "A simple opionated yaml formatter that keeps your comments!"
Expand Down Expand Up @@ -125,7 +126,6 @@ fixers = [
]
typing = [
"mypy>=0.910",

"types-click>=7.1.8",
]
dev = [
Expand Down

0 comments on commit 341f426

Please sign in to comment.