Skip to content
Snippets Groups Projects
Commit 14f7021f authored by Christoph Groth's avatar Christoph Groth
Browse files

CI: check for other whitespace blunders as well

parent 54d82c08
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,10 @@ build package:
untracked: true
expire_in: 1 hour
check for whitespace:
check whitespace style:
stage: build
script:
- "! for f in `git ls-files | grep -v \\.diff$`; do file $f | grep -q ' text' && grep -l '[[:blank:]]$' $f; done | grep . >&2"
- "! for f in `git ls-files | grep -v \\.diff$`; do file $f | grep -q ' text' || continue; grep -q '[[:blank:]]$' $f && echo $f: trailing whitespace; tail -n1 $f | read -r _ || echo $f: no newline at end of file; tail -n1 $f | grep -q '^$' && echo $f: empty line at end of file; done | grep . >&2"
allow_failure: true
check for dependencies installed:
......
......@@ -61,4 +61,4 @@ namely time-reversal symmetry, particle-hole symmetry and chiral (or
sublattice) symmetry. When one or more of these symmetries are present,
and it can be useful to have leads with scattering states that reflect this.
It is now possible to these discrete symmetries in Kwant, which then uses
them to construct scattering states that are accordingly symmetric.
\ No newline at end of file
them to construct scattering states that are accordingly symmetric.
......@@ -604,4 +604,4 @@ def test_PHS_TRIM():
assert_almost_equal(phs_modes[:, 1::2], p_mat.dot(phs_modes[:, ::2].conj()),
err_msg='PHS broken at a TRIM in ' + sym)
assert_almost_equal(phs_modes.T.conj().dot(phs_modes), np.eye(phs_modes.shape[1]),
err_msg='Modes are not orthonormal, TRIM PHS in ' + sym)
\ No newline at end of file
err_msg='Modes are not orthonormal, TRIM PHS in ' + sym)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment