Skip to content

Autoformat code with ruff - #909

Merged
mdomke merged 10 commits into
developfrom
feature/autoformat-code-with-ruff
Nov 18, 2024
Merged

mdomke merged 10 commits into
developfrom
feature/autoformat-code-with-ruff

Conversation

@mdomke

@mdomke mdomke commented Nov 18, 2024 •

Copy link
Copy Markdown
Member

Use ruff to end all style wars

…-the-code

* develop:
  chore: The import usage depends on the presence of pymongo
  Remove useless import guard for unittest.mock
  Remove usage of legacy syntax constructs
  Fix syntax errors in README.rst and add linter
  Add release date for 4.2.0
  Fix test
  Add test case
  Fix sorting using dicts, by doing reversed({"key": -1}) we get -> ["key"], failing to unwrap the sorting direction.
  Add GitHub Actions publish pipeline
  Adapt README to hatch commands
  Update docker image and compose definitions
  Revert "Switch back to original BSD license"
  chore: Revert to older pylint version for now
  chore: Use hatch install action consistently
  chore: Switch to hatch 1.12 test command
  Switch back to original BSD license
  chore: Add Python 3.11/12 to tox
  Add Pascal Corpet as author
  chore: Use hatch in docker-compose
…ormat-code-with-ruff

* feature/drop-support-for-python-3.8:
  chore: Comply to flake8 sorting rules
  chore: Rearrange changelog
  chore: Prefer f-strings of str.format
  Add Python version constraint
  chore: Add changelog for PR #828
  feat: Adding support for aggregation pipelines in updates
  chore: Fix overlong line
  chore: Remove legacy Python syntax constructs
  chore: Comply to ugly import ordering rules
  chore: Fix patch location for legacy library
  chore: Fix patch location for legacy library
  fix(gridfs): Adapt code to refactored Mongo driver GridFS implementation
  Drop support for Python 3.8
@codecov

codecov Bot commented Nov 18, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 93.04348% with 32 lines in your changes missing coverage. Please review.

Project coverage is 96.08%. Comparing base (84305dd) to head (b8b0fe7).
Report is 12 commits behind head on develop.

Files with missing lines Patch % Lines
mongomock/collection.py 88.53% 18 Missing ⚠️
mongomock/aggregate.py 92.42% 5 Missing ⚠️
mongomock/gridfs.py 75.00% 3 Missing ⚠️
tests/multicollection.py 72.72% 3 Missing ⚠️
tests/test__bulk_operations.py 90.00% 1 Missing ⚠️
tests/test__database_api.py 90.00% 1 Missing ⚠️
tests/test__gridfs.py 96.42% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #909      +/-   ##
===========================================
+ Coverage    95.97%   96.08%   +0.11%     
===========================================
  Files           35       35              
  Lines        10060    10065       +5     
===========================================
+ Hits          9655     9671      +16     
+ Misses         405      394      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant