Skip to content

Commit

Permalink
Tweaks: C line length = 88, memray during tests (#46)
Browse files Browse the repository at this point in the history
- Set the clang-format line length to 88, to match black
- Use memray to generate allocation information during tests
  • Loading branch information
jordemort authored Apr 25, 2022
1 parent 23e2db7 commit f7ea6d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ BinPackParameters: false
AlignAfterOpenBracket: BlockIndent
AllowAllArgumentsOnNextLine: true
Cpp11BracedListStyle: true
ColumnLimit: 88
PenaltyReturnTypeOnItsOwnLine: 1000
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ python =
3.10: py310

[testenv]
deps =
-r development.txt
pytest-memray
commands = pytest -v --memray

[testenv:py37]
deps = -r development.txt
commands = pytest -v

[flake8]
max-line-length = 180
max-line-length = 88
extend-ignore = E203, W503

0 comments on commit f7ea6d1

Please sign in to comment.