Skip to content

Commit 2f825ad

Browse files
committed
chore: 🤖 replace yapf with black
1 parent ccee618 commit 2f825ad

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Run flake8 on Python files
4141
flake8 pyencrypt --count --show-source --max-complexity=10 --statistics
4242
# Run flake8 on test files
43-
flake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,E501
43+
flake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,W503
4444
4545
- name: Test with pytest
4646
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Options:
177177
### Format Code
178178

179179
```shell
180-
yapf --recursive -i pyencrypt
180+
black pyencrypt
181181
isort pyencrypt
182182
```
183183

dev-requirement.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-r requirement.txt
22
isort==5.10.1
3-
yapf==0.31.0
3+
black==22.8.0
44
pytest==6.2.5
55
ipython==7.16.3
66
flake8==4.0.1

setup.cfg

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ exclude =
4848
console_scripts =
4949
pyencrypt = pyencrypt.cli:cli
5050

51-
[yapf]
52-
based_on_style = pep8
53-
COLUMN_LIMIT = 119
54-
indent_width = 4
55-
coalesce_brackets = True
56-
dedent_closing_brackets = True
51+
[black]
52+
line-length = 88
53+
54+
[isort]
55+
profile = black
5756

5857
[flake8]
59-
max_line_length = 119
60-
ignore = E501,W504
58+
max-line-length = 88
59+
extend-ignore = E203,E701,E501

0 commit comments

Comments
 (0)