Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tox-dev/filelock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.17.0
Choose a base ref
...
head repository: tox-dev/filelock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.18.0
Choose a head ref
  • 10 commits
  • 5 files changed
  • 4 contributors

Commits on Jan 24, 2025

  1. Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 (#390)

    Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.3 to 1.12.4.
    - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
    - [Commits](pypa/gh-action-pypi-publish@v1.12.3...v1.12.4)
    
    ---
    updated-dependencies:
    - dependency-name: pypa/gh-action-pypi-publish
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 24, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    colemickens Cole Mickens
    Copy the full SHA
    18c9571 View commit details

Commits on Jan 28, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#391)

    updates:
    - [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](codespell-project/codespell@v2.3.0...v2.4.0)
    - [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3](astral-sh/ruff-pre-commit@v0.9.2...v0.9.3)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Jan 28, 2025
    Copy the full SHA
    2760759 View commit details

Commits on Feb 4, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#393)

    updates:
    - [github.com/python-jsonschema/check-jsonschema: 0.31.0 → 0.31.1](python-jsonschema/check-jsonschema@0.31.0...0.31.1)
    - [github.com/codespell-project/codespell: v2.4.0 → v2.4.1](codespell-project/codespell@v2.4.0...v2.4.1)
    - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4](astral-sh/ruff-pre-commit@v0.9.3...v0.9.4)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 4, 2025
    Copy the full SHA
    3c9b680 View commit details
  2. Copy the full SHA
    b5f98a6 View commit details

Commits on Feb 10, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#395)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.4...v0.9.6)
    - [github.com/rbubley/mirrors-prettier: v3.4.2 → v3.5.0](rbubley/mirrors-prettier@v3.4.2...v3.5.0)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 10, 2025
    Copy the full SHA
    0ac6826 View commit details

Commits on Feb 18, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#396)

    updates:
    - [github.com/rbubley/mirrors-prettier: v3.5.0 → v3.5.1](rbubley/mirrors-prettier@v3.5.0...v3.5.1)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 18, 2025
    Copy the full SHA
    468ba43 View commit details

Commits on Feb 19, 2025

  1. Support fcntl check on Emscripten (#398)

    * Support fcntl check on Emscripten
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Fix `fcntl.flock` typo
    
    ---------
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    juntyr and pre-commit-ci[bot] authored Feb 19, 2025
    Copy the full SHA
    82f5a2d View commit details

Commits on Feb 24, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#401)

    updates:
    - [github.com/python-jsonschema/check-jsonschema: 0.31.1 → 0.31.2](python-jsonschema/check-jsonschema@0.31.1...0.31.2)
    - [github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7](astral-sh/ruff-pre-commit@v0.9.6...v0.9.7)
    - [github.com/rbubley/mirrors-prettier: v3.5.1 → v3.5.2](rbubley/mirrors-prettier@v3.5.1...v3.5.2)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Feb 24, 2025
    Copy the full SHA
    efba779 View commit details

Commits on Mar 4, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#403)

    updates:
    - [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](tox-dev/pyproject-fmt@v2.5.0...v2.5.1)
    - [github.com/astral-sh/ruff-pre-commit: v0.9.7 → v0.9.9](astral-sh/ruff-pre-commit@v0.9.7...v0.9.9)
    - [github.com/rbubley/mirrors-prettier: v3.5.2 → v3.5.3](rbubley/mirrors-prettier@v3.5.2...v3.5.3)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 4, 2025
    Copy the full SHA
    717d7e0 View commit details

Commits on Mar 11, 2025

  1. [pre-commit.ci] pre-commit autoupdate (#405)

    updates:
    - [github.com/python-jsonschema/check-jsonschema: 0.31.2 → 0.31.3](python-jsonschema/check-jsonschema@0.31.2...0.31.3)
    - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.9.10](astral-sh/ruff-pre-commit@v0.9.9...v0.9.10)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Mar 11, 2025
    Copy the full SHA
    129a1ef View commit details
Showing with 11 additions and 9 deletions.
  1. +1 −1 .github/workflows/release.yaml
  2. +5 −5 .pre-commit-config.yaml
  3. +1 −1 docs/index.rst
  4. +3 −1 src/filelock/_unix.py
  5. +1 −1 src/filelock/asyncio.py
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ working directory is currently used. To do so, create a :class:`FileLock <filelo
lock = FileLock(lock_path, timeout=1)
The lock object supports multiple ways for acquiring the lock, including the ones used to acquire standard Python thread
The lock object represents an exclusive/write lock and can be acquired in multiple ways, including the ones used to acquire standard Python thread
locks:

.. code-block:: python
4 changes: 3 additions & 1 deletion src/filelock/_unix.py
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@ def _release(self) -> 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
2 changes: 1 addition & 1 deletion src/filelock/asyncio.py
Original file line number Diff line number Diff line change
@@ -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