Skip to content

Commit

Permalink
v23.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Vedrilla committed Oct 4, 2023
1 parent c27ac6a commit b9fa1a7
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- name: Install required packages
run: pip install pre-commit
Expand Down
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,28 @@

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
args: [ --check, --diff, --config, ./pyproject.toml ]
language_version: python3.11
stages: [ push ]

- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.285'
rev: 'v0.0.292'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.14.0
hooks:
- id: pyupgrade
args: [ --py38-plus ]
language_version: python3.11
stages: [ push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.14.0
rev: 1.15.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
language_version: python3.11
stages: [ push ]
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

**23.10.1 (2023-10-04)**
* Added Python 3.12 support
* Updated linting packages

**23.9.5 (2023-09-08)**
* Adjusted scripts directory structure (by OS)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![PyPI release](https://img.shields.io/pypi/v/ambient-package-update.svg)](https://pypi.org/project/ambient-package-update/)
[![Downloads](https://static.pepy.tech/badge/ambient-package-update)](https://pepy.tech/project/ambient-package-update)
[![Linting](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Coding Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)

# Ambient Package Update
Expand Down
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.9.5'
__version__ = '23.10.1'
8 changes: 5 additions & 3 deletions ambient_package_update/templates/.github/workflows/ci.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- name: Install required packages
run: pip install pre-commit
Expand All @@ -26,10 +26,12 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
django-version: [32, 41, 42]

exclude:
- python-version: '3.12'
django-version: 32
- python-version: '3.11'
django-version: 32
- python-version: '3.10'
Expand Down
12 changes: 4 additions & 8 deletions ambient_package_update/templates/.pre-commit-config.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,28 @@

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
args: [ --check, --diff, --config, ./pyproject.toml ]
language_version: python3.11
stages: [ push ]

- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.285'
rev: 'v0.0.292'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.14.0
hooks:
- id: pyupgrade
args: [ --py38-plus ]
language_version: python3.11
stages: [ push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.14.0
rev: 1.15.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
language_version: python3.11
stages: [ push ]
2 changes: 1 addition & 1 deletion ambient_package_update/templates/.readthedocs.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ python:
- method: pip
path: .
extra_requirements:
- dev
- dev
1 change: 1 addition & 0 deletions ambient_package_update/templates/README.md.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![PyPI release](https://img.shields.io/pypi/v/{{ package_name|replace("_", "-") }}.svg)](https://pypi.org/project/{{ package_name|replace("_", "-") }}/)
[![Downloads](https://static.pepy.tech/badge/{{ package_name|replace("_", "-") }})](https://pepy.tech/project/{{ package_name|replace("_", "-") }})
[![Linting](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Coding Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
[![Documentation Status](https://readthedocs.org/projects/{{ package_name|replace("_", "-") }}/badge/?version=latest)](https://{{ package_name|replace("_", "-") }}.readthedocs.io/en/latest/?badge=latest)

Expand Down
6 changes: 4 additions & 2 deletions ambient_package_update/templates/pyproject.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
dynamic = ["version", "description"]
Expand Down Expand Up @@ -136,8 +137,8 @@ line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.11
target-version = "py311"
# Assume Python 3.12
target-version = "py312"

[tool.tox]
legacy_tox_ini = """
Expand All @@ -161,4 +162,5 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
"""
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
dynamic = ["version", "description"]
Expand Down Expand Up @@ -128,5 +128,5 @@ line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.11
target-version = "py311"
# Assume Python 3.12
target-version = "py312"

0 comments on commit b9fa1a7

Please sign in to comment.