Skip to content

Commit 3fe9b14

Browse files
committed
Add notes for unicode files whitelist
1 parent 69462a4 commit 3fe9b14

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

sympy/utilities/quality_unicode.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,28 @@
3333

3434
# Whitelist pattern for files which can have unicode.
3535
unicode_whitelist = [
36+
# Author names can include non-ASCII characters
3637
r'*/bin/authors_update.py',
37-
r'*/sympy/utilities/tests/test_code_quality.py',
3838

39-
# TODO Delete unicode in these files.
40-
r'*/physics/quantum/tests/test_printing.py',
39+
# These files have functions and test functions for unicode input and
40+
# output.
41+
r'*/sympy/utilities/tests/test_code_quality.py',
4142
r'*/sympy/physics/vector/tests/test_printing.py',
43+
r'*/physics/quantum/tests/test_printing.py',
4244
r'*/sympy/vector/tests/test_printing.py',
4345
r'*/sympy/parsing/tests/test_sympy_parser.py',
44-
r'*/sympy/physics/wigner.py',
45-
r'*/sympy/physics/optics/polarization.py',
4646
r'*/sympy/printing/pretty/tests/test_pretty.py',
4747
r'*/sympy/printing/tests/test_preview.py',
48-
# These 3 files in liealgebras have functions that return unicode strings
49-
# and tests for those functions.
5048
r'*/liealgebras/type_g.py',
5149
r'*/liealgebras/weyl_group.py',
5250
r'*/liealgebras/tests/test_type_G.py',
51+
52+
# wigner.py and polarization.py have unicode doctests. These probably
53+
# don't need to be there but some of the examples that are there are
54+
# pretty ugly without use_unicode (matrices need to be wrapped across
55+
# multiple lines etc)
56+
r'*/sympy/physics/wigner.py',
57+
r'*/sympy/physics/optics/polarization.py',
5358
]
5459

5560
unicode_strict_whitelist = [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy