summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-30 18:21:06 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-30 18:24:25 -0500
commitf44415b9dde9ff7b3621714d6986cbca3bf9e60e (patch)
tree8b4c95c682d3308bbb879be589b3dafeec076895
parentdba1bc3a73482a30a71c24788829cb220689848b (diff)
downloadpython-coveragepy-git-f44415b9dde9ff7b3621714d6986cbca3bf9e60e.tar.gz
build: some files need to be excused from usual formatting rules
-rw-r--r--.editorconfig6
-rw-r--r--tests/stress_phystoken.tok2
-rw-r--r--tests/stress_phystoken_dos.tok2
3 files changed, 8 insertions, 2 deletions
diff --git a/.editorconfig b/.editorconfig
index ae430ffd..679ae499 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -33,6 +33,12 @@ indent_size = 2
[*.rst]
max_line_length = 79
+[*.tok]
+trim_trailing_whitespace = false
+
+[*_dos.tok]
+end_of_line = crlf
+
[Makefile]
indent_style = tab
indent_size = 8
diff --git a/tests/stress_phystoken.tok b/tests/stress_phystoken.tok
index 65ba45db..934c633d 100644
--- a/tests/stress_phystoken.tok
+++ b/tests/stress_phystoken.tok
@@ -3,7 +3,7 @@
# Here's some random Python so that test_tokenize_myself will have some
# stressful stuff to try. This file is .tok instead of .py so pylint won't
-# complain about it, check_eol won't look at it, etc.
+# complain about it, editors won't mess with it, etc.
# Some lines are here to reproduce fixed bugs in ast_dump also.
first_back = """\
diff --git a/tests/stress_phystoken_dos.tok b/tests/stress_phystoken_dos.tok
index eb937d95..2f5c795a 100644
--- a/tests/stress_phystoken_dos.tok
+++ b/tests/stress_phystoken_dos.tok
@@ -3,7 +3,7 @@
# Here's some random Python so that test_tokenize_myself will have some
# stressful stuff to try. This file is .tok instead of .py so pylint won't
-# complain about it, check_eol won't look at it, etc.
+# complain about it, editors won't mess with it, etc.
first_back = """\
hey there!