Skip to content

Resolve all flake8 errors#588

Open
loqs wants to merge 5 commits into
aio-libs:masterfrom
loqs:flake8
Open

Resolve all flake8 errors#588
loqs wants to merge 5 commits into
aio-libs:masterfrom
loqs:flake8

Conversation

@loqs
Copy link
Copy Markdown
Contributor

@loqs loqs commented May 8, 2026

What do these changes do?

Restore flake8 related settings removed in commit 8d81f96 reducing the number of flake8 errors from 1775 to 4. The remaining 4 flake8 errors are each fixed in their own commit.

Are there changes in behavior for the user?

No.

Related issue number

Related #544.

Checklist

  • I think the code is well written
  • [] Unit tests for the changes exist
  • tox testenvs have been executed in the following environments:
    • Linux (Ubuntu 18.04, Ubuntu 20.04, Arch): qa
    • Windows (7, 10): {py36,py37,py38,py39}-{nocov,cov,diffcov}
    • WSL 1.0 (Ubuntu 18.04): {py36,py37,py38,py39}-{nocov,cov,diffcov}, pypy3-{nocov,cov}, qa, docs
    • FreeBSD (12.2, 12.1, 11.4): {py36,pypy3}-{nocov,cov,diffcov}, qa
    • Cygwin: py36-{nocov,cov,diffcov}, qa, docs
  • Documentation reflects the changes
  • Add a news fragment into the NEWS.rst file
    • Add under the "aiosmtpd-next" section, creating one if necessary
      • You may create subsections to group the changes, if you like
    • Use full sentences with correct case and punctuation
    • Refer to relevant Issue if applicable

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.77%. Comparing base (217ab36) to head (f489faa).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #588      +/-   ##
==========================================
+ Coverage   97.71%   97.77%   +0.05%     
==========================================
  Files          23       23              
  Lines        5700     5701       +1     
  Branches      351      351              
==========================================
+ Hits         5570     5574       +4     
+ Misses         83       79       -4     
- Partials       47       48       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

loqs added 5 commits May 9, 2026 15:49
These were removed in commit 8d81f96. This reduces the number of flake8 errors from 1775 to 4.

Global ignores:
ANN002: Missing type annotation for *args
ANN003: Missing type annotation for **kwargs
ANN101: Missing type annotation for self in method
ANN102: Missing type annotation for cls in classmethod

Fixed per-file-ignores:
aiosmtpd/tests/test_*:ANN001

Related settings:
min-coverage-percents = 12
suppress-none-returning = True
suppress-dummy-args = True
allow-untyped-defs = True
Global name is declared but never assigned to within that scope. Fix by
removing unnecessary 'nonlocal thread' declarations in test_server.py.
Use of pytest.warns() without a match parameter. Add match parameter to
pytest.warns for specificity.
Multiline container is not broken after opening character. Fix by
adding line break.
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