-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsetup.cfg
More file actions
41 lines (37 loc) · 1.72 KB
/
Copy pathsetup.cfg
File metadata and controls
41 lines (37 loc) · 1.72 KB
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
37
38
39
40
41
[metadata]
license_files = LICENSE
desciption_file = README.md
[pep8]
max-line-length = 80
[flake8]
max-line-length = 80
# E111/E114/E121/E127/E128/E131 are pycodestyle's hard-coded 4-space indent
# checks; we use 2-space indent across the repo (see [yapf] and .clang-format),
# and yapf's continuation indentation can also trigger E126, so these must be
# disabled for flake8 to agree with the formatter output.
ignore = E731, E203, E402, W503, W504, F821, E501, E502, E251, B, C4, EXE, E111, E114, E121, E126, E127, E128, E131
per-file-ignores =
__init__.py: F401, F403, F405
# Vendored from flash-attention-512-dev for the SM100 D512 port; each file's
# own header carries the copyright and upstream URL. Their whole value is that
# the code can be regenerated and diffed against the donor -- comments were
# condensed to this repository's style, but style findings in the code are the
# donor's properties and must not be "fixed" here, since that would silently
# fork the copy. Listed individually rather than by glob so a new vendored file
# has to be added deliberately.
src/ffpa_attn/cute/utils/mma_sm100_desc.py: E221
src/ffpa_attn/cute/utils/blackwell_helpers.py: F841
exclude = venv,csrc/cuffpa/generated,build,dist,ffpa_attn.egg-info,.tmp,src/ffpa_attn/_version.py
[pydocstyle]
select = D417 # Missing argument descriptions in the docstring
[yapf]
# 2-space indentation for Python, matching the C/C++ convention used across
# the repository. column_limit mirrors flake8's max-line-length so yapf never
# produces lines that flake8 would then reject.
based_on_style = pep8
indent_width = 2
continuation_indent_width = 2
column_limit = 80
dedent_closing_brackets = true
coalesce_brackets = true
split_before_logical_operator = true