Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
interval: "quarterly"
groups:
github-actions:
patterns:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/readme_example.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

# This workflow exists for several purposes:
Expand Down
17 changes: 6 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ci:
autoupdate_schedule: "monthly"
autoupdate_schedule: "quarterly"

default_language_version:
python: "python3.13"
Expand All @@ -21,18 +21,13 @@ repos:
- "--fix=lf"
- id: "trailing-whitespace"

- repo: "https://github.com/kurtmckee/chipshot"
rev: "v0.8.0"
hooks:
- id: "update-headers"

- repo: "https://github.com/sirosen/slyp"
rev: 0.8.2
rev: "0.8.2"
hooks:
- id: "slyp"

- repo: "https://github.com/psf/black-pre-commit-mirror"
rev: "25.11.0"
rev: "25.12.0"
hooks:
- id: "black"

Expand All @@ -47,7 +42,7 @@ repos:
- id: "flake8"
additional_dependencies:
- "flake8-toml-config==1.0.0"
- "flake8-bugbear==25.10.21"
- "flake8-bugbear==25.11.29"

- repo: "https://github.com/editorconfig-checker/editorconfig-checker"
rev: "v3.6.0"
Expand All @@ -71,13 +66,13 @@ repos:
pass_filenames: false

- repo: "https://github.com/python-jsonschema/check-jsonschema"
rev: "0.35.0"
rev: "0.36.0"
hooks:
- id: "check-github-workflows"
- id: "check-dependabot"

- repo: "https://github.com/rhysd/actionlint"
rev: "v1.7.9"
rev: "v1.7.10"
hooks:
- id: "actionlint"
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
This file is a part of the detect-pythons project.
https://github.com/kurtmckee/detect-pythons
Copyright 2023-2025 Kurt McKee <[email protected]>
Copyright 2023-2026 Kurt McKee <[email protected]>
SPDX-License-Identifier: MIT
..
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright 2023-2025 Kurt McKee <[email protected]>
Copyright 2023-2026 Kurt McKee <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
..
This file is a part of the detect-pythons project.
https://github.com/kurtmckee/detect-pythons
Copyright 2023-2025 Kurt McKee <[email protected]>
Copyright 2023-2026 Kurt McKee <[email protected]>
SPDX-License-Identifier: MIT
Detect Python interpreters
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

author: "Kurt McKee"
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ exclusions = [
"changelog.d/",
]

[tool.chipshot.extensions.yaml]
style = "hash"


# coverage
# --------
Expand Down
2 changes: 1 addition & 1 deletion src/detect_pythons/detector.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

# Search paths in $PATH for Python interpreters.
Expand Down
2 changes: 1 addition & 1 deletion src/detect_pythons/detector.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

IDENTIFY_PY="${GITHUB_ACTION_PATH}/src/detect_pythons/identify.py"
Expand Down
2 changes: 1 addition & 1 deletion src/detect_pythons/identify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion src/detect_pythons/sync_readme_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

import pathlib
Expand Down
2 changes: 1 addition & 1 deletion tests/test_identify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

import platform
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sync_readme_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of the detect-pythons project.
# https://github.com/kurtmckee/detect-pythons
# Copyright 2023-2025 Kurt McKee <[email protected]>
# Copyright 2023-2026 Kurt McKee <[email protected]>
# SPDX-License-Identifier: MIT

import unittest.mock
Expand Down
24 changes: 17 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ envlist =
pypy{3.11, 3.10, 3.9, 3.8}
coverage_report
labels =
update=update-{pre-commit}
update=update-{headers, pre_commit}


[testenv]
Expand Down Expand Up @@ -40,18 +40,28 @@ commands_pre =
commands = coverage report


[testenv:update-pre-commit]
description = Update tool versions
[testenv:update_base]
description = Base settings for update-* environments
base_python = py3.13
recreate = true
skip_install = true


[testenv:update-headers]
description = Update headers
base = update_base
deps =
chipshot
commands =
chipshot --update src/ tests/ CHANGELOG.rst README.rst action.yaml .github/workflows/readme_example.yaml


[testenv:update-pre_commit]
description = Update pre-commit hooks
base = update_base
deps =
pre-commit
upadup
commands =
# Update pre-commit hooks and additional dependencies.
pre-commit autoupdate
upadup

# Run pre-commit immediately, but ignore its exit code.
- pre-commit run -a