Skip to content

Commit a1548c9

Browse files
authored
Merge pull request #91 from Materials-Data-Science-and-Informatics/feature/update_hooks
update pre-commit hooks and dependencies
2 parents 6257f3a + 324b4c3 commit a1548c9

43 files changed

Lines changed: 1010 additions & 786 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
repos:
2-
# Various general + format-specific helpers
3-
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.4.0
5-
hooks:
6-
- id: check-symlinks
7-
- id: trailing-whitespace
8-
- id: mixed-line-ending
9-
args: [--fix=lf]
10-
- id: check-yaml
11-
exclude: "mkdocs.yml"
12-
- id: check-toml
13-
- id: check-json
14-
- id: check-ast
15-
- id: debug-statements
16-
- id: check-merge-conflict
17-
- id: check-shebang-scripts-are-executable
18-
- id: check-added-large-files
19-
args: [--maxkb=10000]
20-
- repo: https://github.com/python-jsonschema/check-jsonschema
21-
rev: "0.22.0"
22-
hooks:
23-
- id: check-github-workflows
24-
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
# Ruff version.
26-
rev: v0.1.6
27-
hooks:
28-
# Run the linter.
29-
- id: ruff
30-
types_or: [python, pyi, jupyter]
31-
args: [--fix]
32-
# Run the formatter.
33-
- id: ruff-format
34-
types_or: [python, pyi, jupyter]
35-
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: "v1.1.1"
37-
hooks:
38-
- id: mypy
39-
args: [--no-strict-optional, --ignore-missing-imports]
40-
# NOTE: you might need to add some deps here:
41-
additional_dependencies: []
2+
# Various general + format-specific helpers
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.6.0
5+
hooks:
6+
- id: check-symlinks
7+
- id: trailing-whitespace
8+
- id: mixed-line-ending
9+
args: [--fix=lf]
10+
- id: check-yaml
11+
exclude: 'mkdocs.yml'
12+
- id: check-toml
13+
- id: check-json
14+
- id: check-ast
15+
- id: debug-statements
16+
- id: check-merge-conflict
17+
- id: check-shebang-scripts-are-executable
18+
- id: check-added-large-files
19+
args: [--maxkb=10000]
20+
- repo: https://github.com/python-jsonschema/check-jsonschema
21+
rev: '0.29.0'
22+
hooks:
23+
- id: check-github-workflows
24+
- repo: https://github.com/astral-sh/ruff-pre-commit
25+
# Ruff version.
26+
rev: v0.5.4
27+
hooks:
28+
# Run the linter.
29+
- id: ruff
30+
types_or: [python, pyi, jupyter]
31+
args: [--fix]
32+
# Run the formatter.
33+
- id: ruff-format
34+
types_or: [python, pyi, jupyter]
35+
- repo: https://github.com/pre-commit/mirrors-mypy
36+
rev: 'v1.11.0'
37+
hooks:
38+
- id: mypy
39+
args: [--no-strict-optional, --ignore-missing-imports]
40+
# NOTE: you might need to add some deps here:
41+
additional_dependencies: []
4242

43-
# Metadata
44-
- repo: https://github.com/citation-file-format/cff-converter-python
45-
rev: "44e8fc9"
46-
hooks:
47-
- id: validate-cff
48-
- repo: https://github.com/fsfe/reuse-tool
49-
rev: "v1.1.2"
50-
hooks:
51-
- id: reuse
43+
# Metadata
44+
- repo: https://github.com/citation-file-format/cff-converter-python
45+
rev: '054bda51dbe278b3e86f27c890e3f3ac877d616c'
46+
hooks:
47+
- id: validate-cff
48+
- repo: https://github.com/fsfe/reuse-tool
49+
rev: 'v4.0.3'
50+
hooks:
51+
- id: reuse
5252

53-
- repo: local
54-
hooks:
55-
# NOTE: copy from .pre-commit-hooks.yaml, for technical reasons
56-
- id: somesy-sync
57-
name: Run somesy sync
58-
entry: somesy sync
59-
language: python
60-
files: '^\.somesy\.toml|pyproject\.toml$'
61-
pass_filenames: false
53+
- repo: local
54+
hooks:
55+
# NOTE: copy from .pre-commit-hooks.yaml, for technical reasons
56+
- id: somesy-sync
57+
name: Run somesy sync
58+
entry: somesy sync
59+
language: python
60+
files: '^\.somesy\.toml|pyproject\.toml$'
61+
pass_filenames: false
6262

63-
- id: somesy-fill
64-
name: Update AUTHORS.md
65-
entry: somesy fill -t docs/_template_authors.md -o AUTHORS.md
66-
language: python
67-
files: '^\.somesy\.toml|pyproject\.toml$'
68-
pass_filenames: false
63+
- id: somesy-fill
64+
name: Update AUTHORS.md
65+
entry: somesy fill -t docs/_template_authors.md -o AUTHORS.md
66+
language: python
67+
files: '^\.somesy\.toml|pyproject\.toml$'
68+
pass_filenames: false

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

poetry.lock

Lines changed: 826 additions & 653 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,45 +35,45 @@ include = [
3535

3636
[tool.poetry.dependencies]
3737
python = "^3.8"
38-
pydantic = {extras = ["email"], version = "^2.4.2"}
39-
ruamel-yaml = "^0.17.21"
40-
tomlkit = "^0.11.6"
41-
importlib-metadata = "^4.11.0"
42-
typer = {extras = ["all"], version = "^0.7.0"}
38+
pydantic = {extras = ["email"], version = "^2.8.2"}
39+
ruamel-yaml = "^0.18.6"
40+
tomlkit = "^0.13.0"
41+
importlib-metadata = "^8.0.0"
42+
typer = {extras = ["all"], version = "^0.12.3"}
4343
cffconvert = "^2.0.0"
44-
wrapt = "^1.15.0"
45-
packaging = "^23.1"
46-
jinja2 = "^3.1.2"
44+
wrapt = "^1.16.0"
45+
packaging = "^24.1"
46+
jinja2 = "^3.1.4"
4747
defusedxml = "^0.7.1"
4848

4949
[tool.poetry.group.dev.dependencies]
50-
poethepoet = "^0.18.1"
51-
pre-commit = "^3.1.1"
52-
pytest = "^7.2.2"
53-
pytest-cov = "^4.0.0"
54-
hypothesis = "^6.68.2"
55-
licensecheck = "^2023.1.1"
56-
pytest-mock = "^3.10.0"
50+
poethepoet = "^0.27.0"
51+
pre-commit = "^3.5.0"
52+
pytest = "^8.3.1"
53+
pytest-cov = "^5.0.0"
54+
hypothesis = "^6.108.4"
55+
licensecheck = "^2024.2"
56+
pytest-mock = "^3.14.0"
5757

5858
[tool.poetry.group.docs]
5959
optional = true
6060

6161
[tool.poetry.group.docs.dependencies]
62-
mkdocs = "^1.4.2"
63-
mkdocstrings = {extras = ["python"], version = "^0.24.0"}
64-
mkdocs-material = "^9.4"
62+
mkdocs = "^1.6.0"
63+
mkdocstrings = {extras = ["python"], version = "^0.25.1"}
64+
mkdocs-material = "^9.5.30"
6565
mkdocs-gen-files = "^0.5.0"
66-
mkdocs-literate-nav = "^0.6.0"
67-
mkdocs-section-index = "^0.3.5"
68-
mkdocs-macros-plugin = "^0.7.0"
66+
mkdocs-literate-nav = "^0.6.1"
67+
mkdocs-section-index = "^0.3.9"
68+
mkdocs-macros-plugin = "^1.0.5"
6969
markdown-include = "^0.8.1"
70-
pymdown-extensions = "^10.2"
71-
markdown-exec = {extras = ["ansi"], version = "^1.6.0"}
72-
mkdocs-coverage = "^1.0.0"
73-
mike = "^2.0.0"
70+
pymdown-extensions = "^10.8.1"
71+
markdown-exec = {extras = ["ansi"], version = "^1.9.3"}
72+
mkdocs-coverage = "^1.1.0"
73+
mike = "^2.1.2"
7474
anybadge = "^1.14.0"
75-
interrogate = "^1.5.0"
76-
black = "^23.3.0"
75+
interrogate = "^1.7.0"
76+
black = "^24.4.2"
7777
mkdocs-exclude = "^1.0.2"
7878

7979
[tool.poetry.scripts]

src/somesy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""somesy package."""
2+
23
import importlib_metadata
34
from typing_extensions import Final
45

src/somesy/cff/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CFF module."""
2+
23
from .writer import CFF
34

45
__all__ = ["CFF"]

src/somesy/cff/writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Citation File Format (CFF) parser and saver."""
2+
23
import json
34
from pathlib import Path
45
from typing import Optional

src/somesy/cli/fill.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Fill command of somesy."""
2+
23
import logging
34
from pathlib import Path
45
from sys import stdin

src/somesy/cli/init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Set config files for somesy."""
2+
23
import logging
34
from pathlib import Path
45

src/somesy/cli/sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Sync command for somesy."""
2+
23
import logging
34
from pathlib import Path
45

0 commit comments

Comments
 (0)