diff --git a/.github/renovate.json b/.github/renovate.json index c00d84c..e3b8653 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -8,4 +8,4 @@ "dependencyDashboard": false, "osvVulnerabilityAlerts": true, "timezone": "Europe/Stockholm" -} \ No newline at end of file +} diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index a9b5826..28b5029 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -16,4 +16,4 @@ jobs: - uses: actions/checkout@v4 - uses: astral-sh/ruff-action@v3 - run: ruff check --exit-non-zero-on-fix --verbose - - run: ruff format --check --verbose \ No newline at end of file + - run: ruff format --check --verbose diff --git a/.gitignore b/.gitignore index 0e821b1..9b4204d 100644 --- a/.gitignore +++ b/.gitignore @@ -168,4 +168,4 @@ cython_debug/ #.idea/ # PyPI configuration file -.pypirc \ No newline at end of file +.pypirc diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6a8bf06 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,41 @@ +repos: + - repo: https://github.com/asottile/add-trailing-comma + rev: v3.1.0 + hooks: + - id: add-trailing-comma + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-builtin-literals + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-shebang-scripts-are-executable + - id: check-toml + - id: check-vcs-permalinks + - id: check-yaml + - id: end-of-file-fixer + - id: mixed-line-ending + - id: name-tests-test + args: ["--pytest-test-first"] + - id: trailing-whitespace + + - repo: https://github.com/asottile/pyupgrade + rev: v3.19.1 + hooks: + - id: pyupgrade + args: ["--py311-plus"] + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.2 + hooks: + - id: ruff-format + - id: ruff + args: ["--fix", "--exit-non-zero-on-fix"] + + - repo: https://github.com/rhysd/actionlint + rev: v1.7.7 + hooks: + - id: actionlint diff --git a/.vscode/launch.json b/.vscode/launch.json index 3d8329d..684ae6a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,4 +9,4 @@ "console": "integratedTerminal" } ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 171d13d..55560d2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,4 +36,4 @@ "tobytes", "unsignedinteger" ] -} \ No newline at end of file +}