Skip to content

Commit 229feca

Browse files
authored
Merge pull request #24 from Materials-Data-Science-and-Informatics/increase_somesy_version
update pre-commit hooks versions
2 parents 9aa6a4b + 3985049 commit 229feca

6 files changed

Lines changed: 31 additions & 26 deletions

File tree

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
repos:
44
# GH Actions
55
- repo: https://github.com/python-jsonschema/check-jsonschema
6-
rev: '0.22.0'
6+
rev: "0.28.6"
77
hooks:
8-
- id: check-github-workflows
8+
- id: check-github-workflows
99

1010
# Quality
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.1.6
12+
rev: v0.5.0
1313
hooks:
1414
- id: ruff
15-
types_or: [ python, pyi, jupyter ]
16-
args: [ --fix ]
15+
types_or: [python, pyi, jupyter]
16+
args: [--fix]
1717
- id: ruff-format
18-
types_or: [ python, pyi, jupyter ]
18+
types_or: [python, pyi, jupyter]
1919

2020
- repo: https://github.com/pre-commit/mirrors-mypy
21-
rev: 'v1.1.1'
21+
rev: "v1.10.1"
2222
hooks:
2323
- id: mypy
2424
args: [--no-strict-optional, --ignore-missing-imports]
@@ -27,37 +27,37 @@ repos:
2727

2828
# License Metadata
2929
- repo: https://github.com/citation-file-format/cff-converter-python
30-
rev: '44e8fc9'
30+
rev: "054bda51dbe278b3e86f27c890e3f3ac877d616c"
3131
hooks:
3232
- id: validate-cff
3333
- repo: https://github.com/fsfe/reuse-tool
34-
rev: 'v1.1.2'
34+
rev: "v3.0.2"
3535
hooks:
3636
- id: reuse
3737

3838
# Project Metadata
3939
- repo: https://github.com/Materials-Data-Science-and-Informatics/somesy
40-
rev: 'v0.3.0'
40+
rev: "v0.4.2"
4141
hooks:
4242
- id: somesy
4343

4444
# Various general + format-specific helpers
4545
# (run last to fix general syntactic defects)
4646
- repo: https://github.com/pre-commit/pre-commit-hooks
47-
rev: v4.4.0
47+
rev: v4.6.0
4848
hooks:
49-
# - id: mixed-line-ending
50-
# args: [--fix=lf]
51-
- id: check-symlinks
52-
- id: trailing-whitespace
53-
exclude: 'CITATION.cff'
54-
- id: check-yaml
55-
exclude: 'mkdocs.yml'
56-
- id: check-toml
57-
- id: check-json
58-
- id: check-ast
59-
- id: debug-statements
60-
- id: check-merge-conflict
61-
- id: check-shebang-scripts-are-executable
62-
- id: check-added-large-files
63-
args: [--maxkb=10000]
49+
# - id: mixed-line-ending
50+
# args: [--fix=lf]
51+
- id: check-symlinks
52+
- id: trailing-whitespace
53+
exclude: "CITATION.cff"
54+
- id: check-yaml
55+
exclude: "mkdocs.yml"
56+
- id: check-toml
57+
- id: check-json
58+
- id: check-ast
59+
- id: debug-statements
60+
- id: check-merge-conflict
61+
- id: check-shebang-scripts-are-executable
62+
- id: check-added-large-files
63+
args: [--maxkb=10000]

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/docs/scripts/coverage_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Mkdocs hook to run tests with coverage collection and generate a badge."""
2+
23
import logging
34
from io import StringIO
45
from pathlib import Path

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_package }}/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Top level module of the project."""
2+
23
from importlib.metadata import version
34
from typing import Final
45

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_package }}/lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This module can be used directly, or the functionality can be
44
exposed using some other interface, such as CLI, GUI or an API.
55
"""
6+
67
from enum import Enum
78

89

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the CLI."""
2+
23
import pytest
34
from hypothesis import given
45
from hypothesis import strategies as st

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/tests/test_lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for core library."""
2+
23
import pytest
34
from hypothesis import assume, given
45
from hypothesis import strategies as st

0 commit comments

Comments
 (0)