Skip to content

Commit

Permalink
v24.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Jun 21, 2024
1 parent 9ffb786 commit 3e42e42
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ repos:
# Run the Ruff formatter.
- id: ruff-format

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '(?:README\.md|docs\/.*\.(?:md|rst))'

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

**24.6.4 (2024-06-21)**
* Added linter `blacken-docs` to pre-commit template

**24.6.3 (2024-06-20)**
* Removed `custom_installation` and `additional_installation` from class `ReadmeContent`

Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,35 @@ from ambient_package_update.metadata.author import PackageAuthor
from ambient_package_update.metadata.constants import DEV_DEPENDENCIES
from ambient_package_update.metadata.package import PackageMetadata
from ambient_package_update.metadata.readme import ReadmeContent
from ambient_package_update.metadata.ruff_ignored_inspection import RuffIgnoredInspection
from ambient_package_update.metadata.ruff_ignored_inspection import (
RuffIgnoredInspection,
)

METADATA = PackageMetadata(
package_name='my_package_name',
package_name="my_package_name",
authors=[
PackageAuthor(
name='Ambient Digital',
email='[email protected]',
name="Ambient Digital",
email="[email protected]",
),
],
development_status='5 - Production/Stable',
development_status="5 - Production/Stable",
readme_content=ReadmeContent(
tagline='A fancy tagline for your new package',
tagline="A fancy tagline for your new package",
content="""A multiline string containing specific things you want to have in your package readme.
""",
),
dependencies=[
'my_dependency>=1.0',
"my_dependency>=1.0",
],
optional_dependencies={
'dev': [
"dev": [
*DEV_DEPENDENCIES,
],
# you might add further extras here
},
ruff_ignore_list=[
RuffIgnoredInspection(key='XYZ', comment="Reason why we need this exception"),

RuffIgnoredInspection(key="XYZ", comment="Reason why we need this exception"),
],
)
```
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__ = "24.6.3"
__version__ = "24.6.4"
8 changes: 8 additions & 0 deletions ambient_package_update/templates/.pre-commit-config.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ repos:
# Run the Ruff formatter.
- id: ruff-format

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '(?:README\.md|docs\/.*\.(?:md|rst))'

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
Expand Down

0 comments on commit 3e42e42

Please sign in to comment.