Skip to content

Commit

Permalink
ci: Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Jul 28, 2024
1 parent 6eccffb commit b264cd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ repos:
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/crate-ci/typos
rev: v1.22.9
rev: v1.23.5
hooks:
- id: typos
exclude: ^tests/|.xsd|xsdata/models/datatype.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.5
hooks:
- id: ruff
args: [ --fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
files: ^(xsdata/)
Expand Down
2 changes: 1 addition & 1 deletion xsdata/formats/dataclass/parsers/nodes/union.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def filter_candidates(self) -> List[Type]:

return list(filter(fixed_attribute, candidates))

def filter_fixed_attrs(self, candidate: Type, parent_ns: str) -> bool:
def filter_fixed_attrs(self, candidate: Type, parent_ns: Optional[str]) -> bool:
"""Return whether the node attrs are incompatible with fixed attrs.
Args:
Expand Down

0 comments on commit b264cd5

Please sign in to comment.