diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8f9af68 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +# 4 space indentation +[*.{py,json}] +indent_style = space +indent_size = 4 + +# 2 space indentation +[*.{md,sh,yaml,yml}] +indent_style = space +indent_size = 2 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..7d6a093 --- /dev/null +++ b/.flake8 @@ -0,0 +1,4 @@ +[flake8] +# Flake8 Options: https://flake8.pycqa.org/en/latest/user/options.html#index-of-options +max-line-length = 120 +ignore = F541, E501, F841, E203 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5462cde --- /dev/null +++ b/.gitattributes @@ -0,0 +1,29 @@ +# https://git-scm.com/docs/gitattributes + +# Set the default behavior, in case people don't have core.autocrlf set. +# https://git-scm.com/docs/gitattributes#_end_of_line_conversion +* text=auto + +# common python attributes, taken from https://github.com/alexkaratarakis/gitattributes/blob/710900479a2bedeec7003d381719521ffbb18bf8/Python.gitattributes +# Source files +# ============ +*.pxd text diff=python +*.py text diff=python +*.py3 text diff=python +*.pyw text diff=python +*.pyx text diff=python +*.pyz text diff=python +*.pyi text diff=python + +# Binary files +# ============ +*.db binary +*.p binary +*.pkl binary +*.pickle binary +*.pyc binary export-ignore +*.pyo binary export-ignore +*.pyd binary + +# Jupyter notebook +*.ipynb text eol=lf