Skip to content

Commit

Permalink
Update setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Feb 4, 2024
1 parent fb74c64 commit 68af6af
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ classifiers =
Operating System :: POSIX :: BSD :: FreeBSD
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Communications :: Email :: Mail Transport Agents
Expand Down Expand Up @@ -68,6 +68,7 @@ disable =
source-dir = aiosmtpd/docs

[flake8]
enable-extensions = G
jobs = 1
max-line-length = 88
# "E,F,W,C90" are flake8 defaults
Expand All @@ -93,12 +94,6 @@ ignore =
PT004
# Sometimes exception needs to be explicitly raised in special circumstances, needing additional lines of code
PT012
# I still can't grok the need to annotate "self" or "cls" ...
ANN101
ANN102
# I don't think forcing annotation for *args and **kwargs is a wise idea...
ANN002
ANN003
# We have too many "if..elif..else: raise" structures that does not convert well to "error-first" design
SIM106
# We have too many 'Any' type annotations.
Expand All @@ -114,7 +109,8 @@ ignore =
# Explicit is better than implicit, range(0, val) is more explicit than range(val).
PIE808
per-file-ignores =
aiosmtpd/tests/test_*:ANN001
# S101: Pytest uses assert
aiosmtpd/tests/*:S101
aiosmtpd/tests/test_proxyprotocol.py:DUO102
aiosmtpd/docs/_exts/autoprogramm.py:C801
# flake8-coding
Expand All @@ -126,10 +122,10 @@ copyright-min-file-size = 44
copyright-author = The aiosmtpd Developers
# flake8-annotations-complexity
max-annotations-complexity = 4
# flake8-annotations-coverage
min-coverage-percents = 12
# flake8-annotations
mypy-init-return = True
suppress-none-returning = True
suppress-dummy-args = True
allow-untyped-defs = True

# flake8-import-order
application-import-names = aiosmtpd
import-order-style = pycharm

# flake8-requirements
requirements-file = requirements-dev.txt

0 comments on commit 68af6af

Please sign in to comment.