generated from python-discord/code-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
35 lines (33 loc) · 1.18 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Flake8 and ISort configuration
[flake8]
# Increase the line length. This breaks PEP8 but it is way easier to work with.
# The original reason for this limit was a standard vim terminal is only 79 characters,
# but this doesn't really apply anymore.
max-line-length=119
# Don't lint the venv or the CPython cache.
exclude=.venv,__pycache__
# Ignore some of the most obnoxious linting errors.
ignore=
# Missing Docstrings
D105, # Missing docstring in magic method
D107, # Missing docstring in __init__
# Docstring Quotes
D301, # Use r"" if any backslashes in a docstring
D302, # Deprecated: Use u"" for Unicode docstrings
# Type Annotations
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
# Testing
S101 # Use of Assert
[isort]
# Select the 5th style (Hanging grid grouped) to handle longer import.
# This choice is mostly arbitrary and can be changed at your will.
#
# Example of this style:
# from third_party import (
# lib1, lib2, lib3, lib4,
# lib5, ...
# )
multi_line_output=5