Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 19, 2024
1 parent 9024616 commit 5695bf4
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 24 deletions.
18 changes: 9 additions & 9 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@
"MD003": "atx", // heading-style
"MD004": {
// ul-style
"style": "dash"
"style": "dash",
},
"MD013": {
// line-length
"line_length": 100
"line_length": 100,
},
"MD014": false, // commands-show-output
"MD024": {
// no-duplicate-heading
"siblings_only": true
"siblings_only": true,
},
"MD035": {
// hr-style
"style": "---"
"style": "---",
},
"MD048": {
// code-fence-style
"style": "backtick"
"style": "backtick",
},
"MD049": {
// emphasis-style
"style": "underscore"
"style": "underscore",
},
"MD050": {
// strong-style
"style": "asterisk"
}
}
"style": "asterisk",
},
},
}
30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:

# file checking out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
hooks:
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
Expand All @@ -36,7 +36,7 @@ repos:

# safety - python dependency vulnerability checker
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: 3f01891d76160f03e9134ef025fb1eb1d10c85a2 # frozen: v1.3.3
rev: 3f01891d76160f03e9134ef025fb1eb1d10c85a2 # frozen: v1.3.3
hooks:
- id: python-safety-dependencies-check
args: ["--disable-telemetry", "--full-report", "--ignore=51457"]
Expand All @@ -55,27 +55,27 @@ repos:

# pyupgrade - upgrade old syntax to new
- repo: https://github.com/asottile/pyupgrade
rev: df17dfa3911b81b4a27190b0eea5b1debc7ffa0a # frozen: v3.15.1
rev: df17dfa3911b81b4a27190b0eea5b1debc7ffa0a # frozen: v3.15.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]

# isort - sort imports
- repo: https://github.com/PyCQA/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
hooks:
- id: isort

# black - python formatter
- repo: https://github.com/psf/black
rev: 6fdf8a4af28071ed1d079c01122b34c5d587207a # frozen: 24.2.0
rev: 6fdf8a4af28071ed1d079c01122b34c5d587207a # frozen: 24.2.0
hooks:
- id: black
args: ["--safe"]

# blacken-docs - black for python code in docs (rst/md/tex)
- repo: https://github.com/asottile/blacken-docs
rev: 960ead214cd1184149d366c6d27ca6c369ce46b6 # frozen: 1.16.0
rev: 960ead214cd1184149d366c6d27ca6c369ce46b6 # frozen: 1.16.0
hooks:
- id: blacken-docs
exclude: testing|tests
Expand All @@ -86,7 +86,7 @@ repos:

# prettier - multi formatter
- repo: https://github.com/pre-commit/mirrors-prettier
rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8
rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8
hooks:
- id: prettier

Expand Down Expand Up @@ -117,7 +117,7 @@ repos:

# code unspecific out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
hooks:
- id: end-of-file-fixer
stages: [commit]
Expand Down Expand Up @@ -147,7 +147,7 @@ repos:

# code unspecific out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
hooks:
- id: check-merge-conflict
- id: detect-private-key
Expand All @@ -158,7 +158,7 @@ repos:

# python specific out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
hooks:
- id: debug-statements
- id: fix-encoding-pragma
Expand Down Expand Up @@ -212,7 +212,7 @@ repos:

# poetry - python dependency management
- repo: https://github.com/Cielquan/mirrors-poetry
rev: 41ef89aac1c244b9592952e5624689909ddadbb7 # frozen: 1.7.1
rev: 41ef89aac1c244b9592952e5624689909ddadbb7 # frozen: 1.7.1
hooks:
- id: poetry-check

Expand All @@ -222,7 +222,7 @@ repos:

# rstcheck - rst file checker
- repo: https://github.com/rstcheck/rstcheck
rev: 445861c31d8134562e723d77115721038de2e687 # frozen: v6.2.0
rev: 445861c31d8134562e723d77115721038de2e687 # frozen: v6.2.0
hooks:
- id: rstcheck
args: ["--config", "pyproject.toml"]
Expand All @@ -235,7 +235,7 @@ repos:

# markdownlint - md file checker
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: 82c791e94c2e2ab2119437d61c722c8e0c20d6c9 # frozen: v0.12.1
rev: 82c791e94c2e2ab2119437d61c722c8e0c20d6c9 # frozen: v0.12.1
hooks:
- id: markdownlint-cli2

Expand All @@ -245,13 +245,13 @@ repos:

# JSON specific out-of-the-box hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
hooks:
- id: check-toml
- id: check-yaml

# yamllint - yaml linter
- repo: https://github.com/adrienverge/yamllint
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # frozen: v1.35.1
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # frozen: v1.35.1
hooks:
- id: yamllint
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration file for the Sphinx documentation builder."""

import os
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions prep_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for preparing the repo for a new release."""

import argparse
import re
import subprocess # noqa: S404
Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Formelsammlung package."""

from typing import List


Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/env_exe_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Call tools from tox environments."""

import subprocess # noqa: S404
import sys
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/envvar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get environment variables and transform their type."""

import os
import re
from typing import Any, Iterable, NoReturn, Optional, Pattern, Set, Union
Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/flask_sphinx_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Serve sphinx docs in your flask app."""

from pathlib import Path
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/strcalc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Calculate arithmetic expressions from strings."""

import ast
import operator
import sys
Expand Down
1 change: 1 addition & 0 deletions src/formelsammlung/venv_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility function for working with virtual environments."""

import contextlib
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions tests/test_env_exe_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `tox_env_exe_runner` module."""

# pylint: disable=protected-access
import os
import subprocess # noqa: S404
Expand Down
1 change: 1 addition & 0 deletions tests/test_envvar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `envvar` module."""

# pylint: disable=protected-access
import re
from decimal import Decimal
Expand Down
1 change: 1 addition & 0 deletions tests/test_flask_sphinx_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `flask_sphinx_docs` module."""

# pylint: disable=W0212
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions tests/test_strcalc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `strcalc` module."""

import random
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions tests/test_venv_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for `venv_utils` module."""

import os
import shutil
import sys
Expand Down

0 comments on commit 5695bf4

Please sign in to comment.