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

psf / black / 879
96%

Build:
DEFAULT BRANCH: master
Ran 17 May 2020 12:38AM UTC
Jobs 4
Files 5
Run time 21s
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

pending completion
879

push

travis-ci-com

web-flow
Add primer CI tool 🏴 (#1402)

* Add primer CI tool 💩
- Run in PATH `black` binary on configured projects
- Can set wether we expect changes or not per project
- Can set what python versions are supported for a project
- if `long_checkout` True project will not be ran on CI

Will add to CI after I finish unit tests to avoid silly bugs I'm sure I have 🤪

Tests:
- Manual Run - Will add unit tests if people think it will be useful
- Output:

```shell
(b) cooper-mbp1:black cooper$ time /tmp/b/bin/black-primer -k -w /tmp/cooper_primer_1
[2020-05-10 08:48:25,696] INFO: 4 projects to run black over (lib.py:212)
[2020-05-10 08:48:25,697] INFO: Skipping aioexabgp as it's disabled via config (lib.py:166)
[2020-05-10 08:48:25,699] INFO: Skipping bandersnatch as it's disabled via config (lib.py:166)
[2020-05-10 08:48:28,676] INFO: Analyzing results (lib.py:225)
-- primer results 📊 --

2 / 4 succeeded (50.0%) ✅
0 / 4 FAILED (0.0%) 💩
 - 2 projects Disabled by config
 - 0 projects skipped due to Python Version
 - 0 skipped due to long checkout

real	0m3.304s
user	0m9.529s
sys	0m1.019s
```

- ls of /tmp/cooper_primer_1
```
(b) cooper-mbp1:black cooper$ ls -lh /tmp/cooper_primer_1
total 0
drwxr-xr-x  21 cooper  wheel   672B May 10 08:48 attrs
drwxr-xr-x  14 cooper  wheel   448B May 10 08:48 flake8-bugbear
```

* Address mypy 3.6 type errors
- Don't use asyncio.run() ... go back to the past :P
- Refactor results into a named tuple of two dicts to avoid typing nightmare
- Fix some variable names
- Fix bug with rebase logic in git_checkout_or_rebase

* Prettier the JSON config file for primer

* Delete projects when finished, move dir to be timestamped + shallow copy

* Re-enable disabled projects post @JelleZijlstra's docstring fix

* Workaround for future annotations until someone tells me the correct fix

4220 of 4377 relevant lines covered (96.41%)

2.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 879.1 (TEST_CMD="pre-commit run --all-files") 17 May 2020 12:38AM UTC 0
0.0
Travis Job 879.1
2 879.2 (TEST_CMD="coverage run -m unittest") 17 May 2020 12:38AM UTC 0
96.37
Travis Job 879.2
3 879.3 (TEST_CMD="coverage run -m unittest") 17 May 2020 12:38AM UTC 0
96.37
Travis Job 879.3
4 879.4 (TEST_CMD="coverage run -m unittest") 17 May 2020 12:38AM UTC 0
96.46
Travis Job 879.4
Source Files on build 879
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #879
  • b50a5270 on github
  • Prev Build on master (#1832)
  • Next Build on master (#1841)
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