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

pseewald / fprettify-forked
96%

Build:
DEFAULT BRANCH: master
Repo Added 03 Aug 2024 04:40PM UTC
Token 78c22NbAhjUevC0LokvbBnJRicBsegLbp regen
Build 11 Last
Files 8
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 140-testing-mechanism
  • master

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

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

Relevant lines Covered
Build:
Build:
1794 RELEVANT LINES 1716 COVERED LINES
2.87 HITS PER LINE
Source Files on master
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22274749825 master 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,... push 22 Feb 2026 09:48AM UTC web-flow github
95.65
22233536938 master Merge branch 'max-forks-formatting-with-black-and-isort' push 20 Feb 2026 05:12PM UTC pseewald github
95.65
19594267871 140-testing-mechanism  applied change lost in rebase push 22 Nov 2025 10:37AM UTC pseewald github
96.52
19580001341 140-testing-mechanism revert removal of shutil import push 21 Nov 2025 06:36PM UTC pseewald github
96.52
19276267497 140-testing-mechanism  fix typos (as suggested by @dbroemmel) push 11 Nov 2025 07:26PM UTC pseewald github
96.52
19214769082 140-testing-mechanism fix issues with gh actions test workflow push 09 Nov 2025 09:36PM UTC pseewald github
96.52
See All Builds (6)

Badge your Repo: fprettify-forked

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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