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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ repos:
name: Check for large files
description: Check for large files that were added to the repository.
args:
- --maxkb=100000
- --maxkb=1000

- id: detect-private-key
name: Detect private key
Expand Down Expand Up @@ -121,19 +121,19 @@ repos:
description: Ensure that files end with a newline.

- repo: https://github.com/eslint/eslint
rev: 9bc0cc45b645bacb23e36e88c7b43c55f22d00d3 # frozen: v10.3.0
rev: 0bc75e8d85925c93a3cbf4891c2baad079c43c34 # frozen: v10.4.1
hooks:
- id: eslint
name: ESLint
description: Check for problems in JavaScript files.
language: node
additional_dependencies:
# eslint itself needs to be here when using additional_dependencies.
- eslint@10.3.0 # https://github.com/eslint/eslint/releases/latest
- eslint@10.4.1 # https://github.com/eslint/eslint/releases/latest
- [email protected] # https://github.com/sindresorhus/globals/releases/latest

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: 8b94b3ea55a821d67fa8a86c898b7874bfebc47d # frozen: v17.10.0
rev: 4ed192c3fb468ed5d36e93b594fbfe4490aa8c31 # frozen: v17.12.0
hooks:
- id: stylelint
name: Stylelint
Expand All @@ -143,7 +143,7 @@ repos:
- --formatter=compact
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@17.10.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint@17.12.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 @@ -227,7 +227,7 @@ repos:
description: Check for black disable comments.

- repo: https://github.com/psf/black-pre-commit-mirror
rev: fa505ab9c3e0fedafe1709fd7ac2b5f8996c670d # frozen: 26.3.1
rev: 4160603246a6b365d4a2af661c6d71b0a0f50478 # frozen: 26.5.1
hooks:
- id: black
name: Black
Expand All @@ -242,7 +242,7 @@ repos:
name: Blacken docs
description: Format Python code in documentation files.
additional_dependencies:
- black==26.3.1 # https://github.com/psf/black/releases/latest
- black==26.5.1 # https://github.com/psf/black/releases/latest
args:
- --target-version=py310 # Minimum required Python version for AA. Update as needed.

Expand All @@ -266,15 +266,15 @@ repos:
description: Format the tox.ini file.

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 91de51aef61c5f2383f03da25604e3d65a8309e0 # frozen: v2.21.1
rev: 3a8ef795727fa946dfcb21c5d07b1442c2362c09 # frozen: v2.23.0
hooks:
- id: pyproject-fmt
name: pyproject.toml formatter
description: Format the pyproject.toml file.
args:
- --indent=4
additional_dependencies:
- tox==4.53.1 # https://github.com/tox-dev/tox/releases/latest
- tox==4.55.0 # https://github.com/tox-dev/tox/releases/latest

- repo: https://github.com/abravalheri/validate-pyproject
rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # frozen: v0.25
Expand Down
27 changes: 22 additions & 5 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,38 @@
],
"ignore": [
"after-comment"
]
],
"message": "Expected an empty line before at-rule"
}
],
"number-max-precision": [
5,
{
"message": "Expected number to have a maximum of 5 decimal places"
}
],
"number-max-precision": 5,
"no-descending-specificity": null,
"media-feature-range-notation": "prefix",
"selector-class-pattern": "_?[a-z0-9]+(-[a-z0-9]+)*$",
"selector-id-pattern": "_?[a-z0-9]+(-[a-z0-9]+)*$",
"selector-class-pattern": [
"_?[a-z0-9]+(-[a-z0-9]+)*$",
{
"message": "Expected class selector to be kebab-case"
}
],
"selector-id-pattern": [
"_?[a-z0-9]+(-[a-z0-9]+)*$",
{
"message": "Expected id selector to be kebab-case"
}
],
"selector-type-case": [
"lower",
{
"ignoreTypes": [
"/regex/",
"non-regex"
]
],
"message": "Expected type selector to be lowercase"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ urls.Tracker = "https://github.com/ppfeufer/aa-sov-timer/issues"
urls.Translation = "https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/"

[tool.hatch]
version.path = "sovtimer/__init__.py"
metadata.allow-direct-references = true
build.include = [
"/sovtimer",
]
metadata.allow-direct-references = true
version.path = "sovtimer/__init__.py"
Loading