Skip to content

Commit

Permalink
Configuring for c-code
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 7, 2022
1 parent e9d3bfc commit d9b5b09
Show file tree
Hide file tree
Showing 15 changed files with 438 additions and 433 deletions.
23 changes: 21 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/c-code
[run]
source = BTrees
# New in 5.0; required for the GHA coveralls submission.
relative_files = True
branch = true

[paths]
source =
src/
.tox/*/lib/python*/site-packages/
.tox/pypy*/site-packages/

[report]
show_missing = true
precision = 2
exclude_lines =
except ImportError:
if __name__ == '__main__':
pragma: no cover
class I[A-Z]\w+\((Interface|I[A-Z].*)\):
self.fail
pragma: nocover
raise AssertionError
raise NotImplementedError
raise unittest.Skip
self.fail\(

[html]
directory = parts/htmlcov
39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/c-code
#
# EditorConfig Configuration file, for more details see:
# http://EditorConfig.org
# EditorConfig is a convention description, that could be interpreted
# by multiple editors to enforce common coding conventions for specific
# file types

# top-most EditorConfig file:
# Will ignore other EditorConfig files in Home directory or upper tree level.
root = true


[*] # For All Files
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Set default charset
charset = utf-8
# Indent style default
indent_style = space
# Max Line Length - a hard line wrap, should be disabled
max_line_length = off

[*.{py,cfg,ini}]
# 4 space indentation
indent_size = 4

[*.{yml,zpt,pt,dtml,zcml}]
# 2 space indentation
indent_size = 2

[{Makefile,.gitmodules}]
# Tab indentation (no size specified, but view as 4 spaces)
indent_style = tab
indent_size = unset
tab_width = unset
Loading

0 comments on commit d9b5b09

Please sign in to comment.