Skip to content

Commit

Permalink
style(project): recover pyproject.toml style rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Lee committed Aug 18, 2024
1 parent f925142 commit 57e356b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''


[tool.isort]
profile = "black"


[tool.coverage]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',

# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',

# Don't complain if tests don't hit defensive assertion code:
'raise AssertionError',
'raise NotImplementedError',

# Don't complain if non-runnable code isn't run:
'if 0:',
'if __name__ == .__main__.:'
]
omit = [
'env/*',
'venv/*',
'*/virtualenv/*',
'*/virtualenvs/*',
'*/tests/*'
]

0 comments on commit 57e356b

Please sign in to comment.