forked from ajslater/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
34 lines (31 loc) · 913 Bytes
/
setup.cfg
File metadata and controls
34 lines (31 loc) · 913 Bytes
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
[flake8]
# https://gitlab.com/pycqa/flake8/issues/428
max-line-length = 88
select = B,B9,C,E,D,F,I,N,W
ignore = W503, E203
mypy_config = setup.cfg
exclude = .git,__pycache__,.pytest_cache,frontend/*,codex/migrations/*
[isort]
# pytest-isort doesn't use toml :(
# https://github.com/moccu/pytest-isort/blob/master/pytest_isort.py
line_length = 88
force_single_line = true
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
multi_line_output = 3
use_parentheses = true
skip_gitignore = true
skip = .git,__pycache__,.pytest_cache,frontend,codex/migrations
[radon]
exclude = .git,__pycache__,.pytest_cache,frontend/*,codex/migrations/*
[mypy]
# https://github.com/python/mypy/issues/5205
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_return_any = True