diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c59bad8d..f063e965 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.3 + uses: pypa/gh-action-pypi-publish@v1.12.4 with: attestations: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acc1c5e8..1e776892 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,12 +5,12 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.0 + rev: 0.31.3 hooks: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell additional_dependencies: ["tomli>=2.2.1"] @@ -20,17 +20,17 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.5.0" + rev: "v2.5.1" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.2" + rev: "v0.9.10" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.4.2" # Use the sha / tag you want to point at + rev: "v3.5.3" # Use the sha / tag you want to point at hooks: - id: prettier additional_dependencies: diff --git a/docs/index.rst b/docs/index.rst index 7995f760..57c6bd89 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -57,7 +57,7 @@ working directory is currently used. To do so, create a :class:`FileLock None: else: # pragma: win32 no cover try: import fcntl - except ImportError: + + _ = (fcntl.flock, fcntl.LOCK_EX, fcntl.LOCK_NB, fcntl.LOCK_UN) + except (ImportError, AttributeError): pass else: has_fcntl = True diff --git a/src/filelock/asyncio.py b/src/filelock/asyncio.py index 252de203..1c9c9f05 100644 --- a/src/filelock/asyncio.py +++ b/src/filelock/asyncio.py @@ -1,4 +1,4 @@ -"""An asyncio-based implementation of the file lock.""" # noqa: A005 +"""An asyncio-based implementation of the file lock.""" from __future__ import annotations