improve compatibility of flake8 with black · gitpython-developers/GitPython@d8bcb80 · GitHub
Skip to content

Commit d8bcb80

Browse files
committed
improve compatibility of flake8 with black
1 parent b4b2380 commit d8bcb80

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

.flake8

Lines changed: 4 additions & 1 deletion

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
# and cause subsequent tests to fail
4545
cat test/fixtures/.gitconfig >> ~/.gitconfig
4646
47+
- name: Lint with black
48+
run: |
49+
set -x
50+
black --check .
51+
4752
- name: Lint with flake8
4853
run: |
4954
set -x

requirements-dev.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
# libraries for additional local testing/linting - to be added to test-requirements.txt when all pass
55

66
flake8-type-checking;python_version>="3.8" # checks for TYPE_CHECKING only imports
7-
# flake8-annotations # checks for presence of type annotations
8-
# flake8-rst-docstrings # checks docstrings are valid RST
9-
# flake8-builtins # warns about shadowing builtin names
10-
# flake8-pytest-style
7+
black
118

12-
# pytest-flake8
139
pytest-icdiff
1410
# pytest-profiling
1511

test-requirements.txt

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)