Skip to content

Commit

Permalink
chore(black): black pyx files too (#1723)
Browse files Browse the repository at this point in the history
Some of our Cython files are actually Python files compiled down to C.
This makes black format them by default, adding to the ignore list only the few
ones we know contains Cython-specific language.
  • Loading branch information
jd committed Oct 14, 2020
1 parent f09600c commit 24ab5d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyproject.toml
Expand Up @@ -8,9 +8,15 @@ version_scheme = "release-branch-semver"
[tool.black]
line-length = 120
target_version = ['py27', 'py35', 'py36', 'py37', 'py38']
include = '''\.py[ix]?$'''
exclude = '''
(
\.eggs
ddtrace/internal/_encoding.pyx$
| ddtrace/internal/_rand.pyx$
| ddtrace/profiling/collector/_traceback.pyx$
| ddtrace/profiling/collector/_threading.pyx$
| ddtrace/profiling/collector/stack.pyx$
| \.eggs
| \.git
| \.hg
| \.mypy_cache
Expand Down

0 comments on commit 24ab5d7

Please sign in to comment.