Skip to content

Commit ad7c1f8

Browse files
authored
New tox.ini and set up test/lint rules (#17)
1 parent 6b9f38a commit ad7c1f8

File tree

14 files changed

+618
-8
lines changed

14 files changed

+618
-8
lines changed

.flake8

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[flake8]
2+
ignore =
3+
E501 # line too long, defer to black
4+
F401 # unused import, defer to pylint
5+
W503 # allow line breaks before binary ops
6+
W504 # allow line breaks after binary ops
7+
E203 # allow whitespace before ':' (https://github.com/psf/black#slices)
8+
exclude =
9+
.git
10+
.tox
11+
CVS
12+
.venv*/
13+
venv*/
14+
target
15+
__pycache__

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,5 @@ dmypy.json
136136

137137
# Cython debug symbols
138138
cython_debug/
139+
140+
.vscode/

.isort.cfg

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[settings]
2+
include_trailing_comma=True
3+
force_grid_wrap=0
4+
use_parentheses=True
5+
line_length=79
6+
7+
; 3 stands for Vertical Hanging Indent, e.g.
8+
; from third_party import (
9+
; lib1,
10+
; lib2,
11+
; lib3,
12+
; )
13+
; docs: https://github.com/timothycrosley/isort#multi-line-output-modes
14+
multi_line_output=3
15+
skip=target
16+
skip_glob=**/gen/*,.venv*/*,venv*/*,**/proto/*,.tox

0 commit comments

Comments
 (0)