• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fortran-lang / fprettify / 22234637981
96%

Build:
DEFAULT BRANCH: master
Ran 20 Feb 2026 05:45PM UTC
Jobs 3
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Feb 2026 05:42PM UTC coverage: 95.652% (+0.002%) from 95.65%
22234637981

push

github

web-flow
Disable whitespace disrupting CUDA chevrons (#162)

* Disable whitespace disrupting CUDA chevrons

Previously, fprettify did not understand CUDA fortran's triple-chevron syntax
for calling kernel functions, e.g.
```fortran
call example_kernel<<<1, 1>>>(args)
```
As a result, each symbol in the chevrons `<<<` would have whitespace added, resulting
in the incorrect syntax:
```fortran
call example_kernel <  <  < 1, 1 >  >  > (args)
```

This problem only occurs when adding whitespace around relational operators
is enabled.

This commit adds an escape hatch to the function that handles whitespace
around operators `add_whitespace_context` which disables the whitespace
handling for any line that matches the REGEX "<<<.*>>>":

```python
CUDA_CHEVRONS_RE = re.compile(r"<<<.*>>>", RE_FLAGS)

...

if not ( ... or CUDA_CHEVRONS_RE.search(line) ):
```

This change should not break any Fortran syntax, however any relational
operator that appears in a line that *also* features a triple-chevron
will not be formatted, e.g.

```fortran
call example_kernel<<<1, 1>>>(3< 4, var1 ==var2)
```

*  run pre-commit

---------

Co-authored-by: Patrick Seewald <patrick.seewald@gmail.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

1716 of 1794 relevant lines covered (95.65%)

2.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3.11 - 22234637981.1 20 Feb 2026 05:46PM UTC 8
95.65
GitHub Action Run
2 3.10 - 22234637981.2 20 Feb 2026 05:46PM UTC 8
95.65
GitHub Action Run
3 3.12 - 22234637981.3 20 Feb 2026 05:46PM UTC 8
95.65
GitHub Action Run
Source Files on build 22234637981
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cdfa984d on github
  • Prev Build on master (#22233581910)
  • Next Build on master (#22275590817)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc