diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8aaef09..5b28f478 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -121,7 +121,7 @@ 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 @@ -129,11 +129,11 @@ repos: 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 - globals@17.6.0 # 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 @@ -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 - stylelint-config-standard@40.0.0 # https://github.com/stylelint/stylelint-config-standard/releases/latest - repo: https://github.com/pre-commit/pygrep-hooks @@ -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 @@ -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. @@ -266,7 +266,7 @@ 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 @@ -274,7 +274,7 @@ repos: 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 diff --git a/.stylelintrc.json b/.stylelintrc.json index 80ea591b..04174fd2 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -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" } ] } diff --git a/pyproject.toml b/pyproject.toml index dc8aa228..6e3fb1e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"