Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

removes more false positives for unused-argument #21

Merged

Conversation

stdedos
Copy link
Collaborator

@stdedos stdedos commented Oct 23, 2023

Signed-off-by: Nate Parsons nate@planet.com

Replayed on https://github.com/pylint-dev/pylint-pytest:

  • Make nsp/nate/better-unused-argument merge-able with origin/master (360461c)
  • Merge remote-tracking branch 'origin/master' into replay/fix/nate/better-unused-argument (c249eb7)
  • Extend coverage for if node.name in FixtureChecker._pytest_fixtures[fixname][0].argnames: (8756cc4)

Signed-off-by: Stavros Ntentos 133706+stdedos@users.noreply.github.com

@stdedos stdedos self-assigned this Oct 23, 2023
Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
…ter-unused-argument

# By Stavros Ntentos (15) and others
# Via GitHub (9) and Stavros Ntentos (1)
* origin/master:
  Release v1.1.3
  Fixing _is_pytest_fixture
  test direct import
  Improve packaging + Release v1.1.3rc1
  Release v1.1.3rc0 (pylint-dev#17)
  Fix testing + coverage
  Improvements for `.github/workflows/run-tests.yaml`
  Fix the repository badges
  Roll back `from __future__ import annotations` for Python 3.6
  Fix mypy issues
  Activate mypy in pre-commit
  [mypy] Fix Item "None" of "Optional[Module]" has no attribute "__file__"
  Carry over some `.pylintrc` configuration
  Minor re-ordering of the `tool.pylint`, with some comments
  Move the pylint configuration to pyproject.toml
  [pylint] Add pylint in the continuous integration and pre-commit
  Activate ruff, ignore the typing of classvar
  Upgrade the changelog for 1.1.3a0 release (pylint-dev#10)
  Use ruff instead of flake8 pyupgrade autoflake and isort
  Enable https://github.com/asottile/pyupgrade + `.git-blame-ignore-revs`
  `pre-commit run -a`
  Add `.pre-commit-config.yaml`
  Add a release job to publish on pypi on github tag creation
  MOAR Improvements: Cross-OS testing, `.gitignore` updates, supporting only `pylint<3`, coverage at Codecov, drop other CI
  CI: Modernize, MOAR Pythons, GH-Actions

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>

# Conflicts:
#	pylint_pytest/checkers/fixture.py
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a5c6855) 92.03% compared to head (8756cc4) 92.16%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   92.03%   92.16%   +0.13%     
==========================================
  Files          18       18              
  Lines         527      536       +9     
  Branches       99      104       +5     
==========================================
+ Hits          485      494       +9     
  Misses         29       29              
  Partials       13       13              
Flag Coverage Δ
3.10 91.97% <100.00%> (+0.13%) ⬆️
3.11 91.97% <100.00%> (+0.13%) ⬆️
3.6 91.97% <100.00%> (+0.13%) ⬆️
3.7 91.97% <100.00%> (+0.13%) ⬆️
3.8 91.97% <100.00%> (+0.13%) ⬆️
3.9 91.97% <100.00%> (+0.13%) ⬆️
macos-latest 91.97% <100.00%> (+0.13%) ⬆️
ubuntu-20.04 91.97% <100.00%> (+0.13%) ⬆️
ubuntu-latest 91.97% <100.00%> (+0.13%) ⬆️
windows-latest 91.97% <100.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pylint_pytest/checkers/fixture.py 90.90% <100.00%> (+0.43%) ⬆️
tests/test_unused_argument.py 100.00% <100.00%> (ø)

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

…fixname][0].argnames:`

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stdedos stdedos merged commit c1547d9 into pylint-dev:master Nov 6, 2023
stdedos added a commit that referenced this pull request Nov 13, 2023
* removes more false positives for unused-argument (#21)
* A collection of minor improvements to tests (#26)
* Windows Artifacts have incorrect Slugification (#25)

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
@stdedos stdedos added this to the Release v2 milestone Feb 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants