Skip to content

Commit

Permalink
v24.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Apr 11, 2024
1 parent 7ef127d commit 6166202
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
linting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.3.5
hooks:
# Run the Ruff linter.
- id: ruff
Expand All @@ -12,15 +12,15 @@ repos:
- id: ruff-format

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [ --py38-plus ]
stages: [ push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.15.0
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
args: [--target-version, "4.2"]
stages: [ push ]
2 changes: 1 addition & 1 deletion ambient_package_update/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Ambient package update tool for clean and swift maintenance"""

__version__ = "23.12.4"
__version__ = "24.4.1"
8 changes: 3 additions & 5 deletions ambient_package_update/metadata/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"pre-commit~=3.5",
"ruff~=0.1.7",
# Documentation
"sphinx==4.2.0",
"sphinx-rtd-theme==1.0.0",
"m2r2==0.3.1",
'sphinx~=7.1',
'sphinx-rtd-theme~=2.0',
'm2r2==0.3.3.post2',
"mistune<2.0.0", # fixes a problem mit m2r2
# Release
"flit~=3.9",
Expand All @@ -23,8 +23,6 @@
]

SUPPORTED_DJANGO_VERSIONS = [
"3.2",
"4.1",
"4.2",
"5.0",
]
Expand Down
8 changes: 4 additions & 4 deletions ambient_package_update/templates/.github/workflows/ci.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand All @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${% raw %}{{ matrix.python-version }}{% endraw %}
- name: Install tox
Expand All @@ -82,7 +82,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand Down
6 changes: 3 additions & 3 deletions ambient_package_update/templates/.pre-commit-config.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.3.5
hooks:
# Run the Ruff linter.
- id: ruff
Expand All @@ -12,14 +12,14 @@ repos:
- id: ruff-format

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [ --py{{ supported_python_versions.0|replace(".", "") }}-plus ]
stages: [ push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.15.0
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "{{ supported_django_versions.0 }}"]
Expand Down
7 changes: 7 additions & 0 deletions ambient_package_update/templates/pyproject.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,10 @@ commands =
python ={% for python_version in supported_python_versions %}
{{ python_version }}: py{{ python_version|replace(".", "") }}{% endfor %}
"""

[tool.pytest.ini_options]
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
]
2 changes: 0 additions & 2 deletions ambient_package_update/templates/pytest.init.tpl

This file was deleted.

0 comments on commit 6166202

Please sign in to comment.