Skip to content

Commit

Permalink
Merge pull request #234 from ppfeufer/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer authored Nov 4, 2024
2 parents da0f429 + 1bcaaa0 commit f7868ff
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 65 deletions.
34 changes: 17 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ repos:
)
- repo: https://github.com/eslint/eslint
rev: v9.12.0
rev: v9.14.0
hooks:
- id: eslint
name: ESLint
Expand All @@ -139,11 +139,11 @@ repos:
)
# additional_dependencies:
# # eslint itself needs to be here when using additional_dependencies.
# - eslint@9.12.0 # https://github.com/eslint/eslint/releases/latest
# - globals@15.10.0 # https://github.com/sindresorhus/globals/releases/latest
# - eslint@9.14.0 # https://github.com/eslint/eslint/releases/latest
# - globals@15.12.0 # https://github.com/sindresorhus/globals/releases/latest

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v16.9.0
rev: v16.10.0
hooks:
- id: stylelint
name: Stylelint
Expand All @@ -157,7 +157,7 @@ repos:
- --formatter=compact
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@16.9.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint@16.10.0 # https://github.com/stylelint/stylelint/releases/latest
- [email protected] # https://github.com/stylelint/stylelint-config-standard/releases/latest

- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down Expand Up @@ -201,7 +201,7 @@ repos:
)
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.21.0
rev: 1.22.1
hooks:
- id: django-upgrade
name: Django upgrade
Expand All @@ -210,7 +210,7 @@ repos:
- --target-version=4.2 # Minimum supported Django version for AA. Update as needed.

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.19.0
hooks:
- id: pyupgrade
name: PyUpgrade
Expand Down Expand Up @@ -247,7 +247,7 @@ repos:
description: Check for black disable comments.

- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
name: Black
Expand All @@ -256,18 +256,18 @@ repos:
- --target-version=py310 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
rev: 1.19.1
hooks:
- id: blacken-docs
name: Blacken docs
description: Format Python code in documentation files.
additional_dependencies:
- black==24.8.0 # https://github.com/psf/black/releases/latest
- black==24.10.0 # https://github.com/psf/black/releases/latest
args:
- --target-version=py310 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
rev: 0.7.18
hooks:
- id: mdformat
name: Mdformat
Expand All @@ -278,10 +278,10 @@ repos:
static/(.*)/libs/
)
additional_dependencies:
- mdformat-gfm==0.3.6 # Mdformat plugin for GitHub Flavored Markdown compatibility » https://github.com/hukkin/mdformat-gfm/tags
- mdformat-gfm==0.3.7 # Mdformat plugin for GitHub Flavored Markdown compatibility » https://github.com/hukkin/mdformat-gfm/tags
- mdformat-toc==0.3.0 # Mdformat plugin to generate a table of contents » https://github.com/hukkin/mdformat-toc/tags
- mdformat-black==0.1.1 # Mdformat plugin to Blacken Python code blocks » https://github.com/hukkin/mdformat-black/tags
- mdformat-shfmt==0.1.0 # Mdformat plugin to format shell code blocks » https://github.com/hukkin/mdformat-shfmt/tags
- mdformat-shfmt==0.2.0 # Mdformat plugin to format shell code blocks » https://github.com/hukkin/mdformat-shfmt/tags

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.4.1
Expand All @@ -291,18 +291,18 @@ repos:
description: Format the tox.ini file.

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.2.4
rev: v2.5.0
hooks:
- id: pyproject-fmt
name: pyproject.toml formatter
description: Format the pyproject.toml file.
args:
- --indent=4
additional_dependencies:
- tox==4.21.2 # https://github.com/tox-dev/tox/releases/latest
- tox==4.23.2 # https://github.com/tox-dev/tox/releases/latest

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.20.2
rev: v0.22
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
Expand All @@ -318,7 +318,7 @@ repos:
- --py-version=3.10 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.3
rev: 0.29.4
hooks:
- id: check-github-actions
name: Check GitHub Actions
Expand Down
116 changes: 71 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "module",
"devDependencies": {
"eslint": "^9.13.0",
"globals": "^15.11.0",
"eslint": "^9.14.0",
"globals": "^15.12.0",
"stylelint": "^16.10.0",
"stylelint-config-standard": "^36.0.1"
}
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dynamic = [
"version",
]
dependencies = [
"allianceauth<5,>=4.3.1",
"allianceauth>=4.3.1,<5",
"allianceauth-app-utils>=1.13",
"dhooks-lite>=0.6.1",
]
Expand Down

0 comments on commit f7868ff

Please sign in to comment.