-
Notifications
You must be signed in to change notification settings - Fork 61
/
.flake8
36 lines (35 loc) · 1.7 KB
/
.flake8
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
36
[flake8]
; Select all
select = A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
max-complexity = 18
max-line-length = 88
exclude = .git, .eggs, __pycache__, build, dist, __init__.py, .domino, .ipynb, .ipynb_checkpoints, projects/htmresearch_import, projects/nupic_legacy_import
; D1XX: Missing Docstrings
; D200: One-line docstring should fit on one line with quotes
; D205: 1 blank line required between summary line and description
; D4XX: Docstring Content Issues
; N812: lowercase imported as non lowercase. Allow "import torch.nn.functional as F"
; T001: print found
; E203: whitespace before ':'
; W503: line break before binary operator
; E800: Found commented out code
; T100: fixme found (FIXME)
; T101: fixme found (TODO)
; T003: pprint found
; C4XX: ignore all Flake8 comprehensions
; BLK100: ignore Black would make changes
; F541: f-string is missing placeholders
ignore = D1, D200, D205, D4, N812, T001, E203, W503, E800, T100, T101, T003, C4, BLK100, F541
; Contains legacy code
per-file-ignores =
packages/columns/*: N801, N802, N803, N806, N815, N816, E111, E114, E121
projects/location_layer/*: N801, N802, N803, N806, N813, N815, N816, E111, E114, E121, E501
projects/l2_pooling/*: N801, N802, N803, N806, N815, E111, E114, E121
projects/l2_pooling/thing_debug.py: N801, N802, N803, N806, N815, E111, E114, E121, E231, E501
projects/union_path_integration/*: N801, N802, N803, N806, N813, N815, E111, E114, E121, E501, C901
tests/unit/frameworks/htm/*: N801, N802, N803, N806, N815
src/nupic/research/frameworks/htm/temporal_memory/examples/*: N801, N802, N803, N806, N815
copyright-check = True
copyright-author = Numenta
copyright-regexp = Copyright\s+\(C\)\s+\d{4},?\s+Numenta
inline-quotes = double