Skip to content

Commit 368bb06

Browse files
Convert Python format to Black.
1 parent 9894973 commit 368bb06

22 files changed

+3445
-1877
lines changed

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
# Based directly on Black's recommendations:
3+
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
4+
max-line-length = 81
5+
select = C,E,F,W,B,B950
6+
ignore = E203, E501, W503

.github/workflows/lint.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ on:
66
branches: [master]
77

88
jobs:
9-
lint-c:
10-
runs-on: ubuntu-18.04
11-
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-python@v1
14-
- name: install clang-format
15-
run: |
16-
sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0
17-
sudo apt-get autoremove
18-
sudo apt-get install clang-format clang-format-6.0
19-
- name: install run-clang-format
20-
run: wget https://raw.githubusercontent.com/Sarcasm/run-clang-format/de6e8ca07d171a7f378d379ff252a00f2905e81d/run-clang-format.py
21-
- name: clang-format
22-
run: python run-clang-format.py --clang-format-executable=clang-format -r c/tskit c/tests
9+
# Turn off lint-c until we get Black done first.
10+
# lint-c:
11+
# runs-on: ubuntu-18.04
12+
# steps:
13+
# - uses: actions/checkout@v1
14+
# - uses: actions/setup-python@v1
15+
# - name: install clang-format
16+
# run: |
17+
# sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0
18+
# sudo apt-get autoremove
19+
# sudo apt-get install clang-format clang-format-6.0
20+
# - name: install run-clang-format
21+
# run: wget https://raw.githubusercontent.com/Sarcasm/run-clang-format/de6e8ca07d171a7f378d379ff252a00f2905e81d/run-clang-format.py
22+
# - name: clang-format
23+
# run: python run-clang-format.py --clang-format-executable=clang-format -r c/tskit c/tests
2324
pre-commit:
2425
runs-on: ubuntu-18.04
2526
steps:

convert_1kg.py

Lines changed: 0 additions & 224 deletions
This file was deleted.

0 commit comments

Comments
 (0)