File tree 12 files changed +6
-59
lines changed
12 files changed +6
-59
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ jobs:
44
44
# and cause subsequent tests to fail
45
45
cat test/fixtures/.gitconfig >> ~/.gitconfig
46
46
47
- - name : Lint with flake8
47
+ - name : Lint with Black
48
48
run : |
49
49
set -x
50
- flake8
50
+ black --check .
51
51
52
52
- name : Check types with mypy
53
53
# With new versions of pypi new issues might arise. This is a problem if there is nobody able to fix them,
Original file line number Diff line number Diff line change @@ -107,16 +107,14 @@ with MINGW's.
107
107
Ensure testing libraries are installed.
108
108
In the root directory, run: ` pip install -r test-requirements.txt `
109
109
110
- To lint, run: ` flake8 `
111
-
112
110
To typecheck, run: ` mypy -p git `
113
111
114
112
To test, run: ` pytest `
115
113
116
- Configuration for flake8 is in the ./.flake8 file.
117
-
118
114
Configurations for mypy, pytest and coverage.py are in ./pyproject.toml.
119
115
116
+ Run ` black ` for formatting.
117
+
120
118
The same linting and testing will also be performed against different supported python versions
121
119
upon submitting a pull request (or on each push if you have a fork with a "main" branch and actions enabled).
122
120
Original file line number Diff line number Diff line change 3
3
#
4
4
# This module is part of GitPython and is released under
5
5
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6
- # flake8: noqa
7
6
# @PydevCodeAnalysisIgnore
8
7
from git .exc import * # @NoMove @IgnorePep8
9
8
import inspect
Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ def execute(
947
947
)
948
948
else :
949
949
cmd_not_found_exception = (
950
- FileNotFoundError # NOQA # exists, flake8 unknown @UndefinedVariable
950
+ FileNotFoundError
951
951
)
952
952
# end handle
953
953
Original file line number Diff line number Diff line change 5
5
# This module is part of GitPython and is released under
6
6
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
7
7
"""utilities to help provide compatibility with python 3"""
8
- # flake8: noqa
9
8
10
9
import locale
11
10
import os
Original file line number Diff line number Diff line change 1
1
"""Initialize the index package"""
2
- # flake8: noqa
3
2
from .base import *
4
3
from .typ import *
Original file line number Diff line number Diff line change 1
1
"""
2
2
Import all submodules main classes into the package space
3
3
"""
4
- # flake8: noqa
5
4
import inspect
6
5
7
6
from .base import *
Original file line number Diff line number Diff line change 1
- # flake8: noqa
2
1
# import all modules in order, fix the names they require
3
2
from .symbolic import *
4
3
from .reference import *
Original file line number Diff line number Diff line change 1
1
"""Initialize the Repo package"""
2
- # flake8: noqa
3
2
from .base import Repo as Repo
Original file line number Diff line number Diff line change 3
3
4
4
# libraries for additional local testing/linting - to be added to test-requirements.txt when all pass
5
5
6
- 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
11
-
12
- # pytest-flake8
13
6
pytest-icdiff
14
7
# pytest-profiling
15
8
Original file line number Diff line number Diff line change 1
1
ddt>=1.1.1, !=1.4.3
2
2
mypy
3
3
4
- flake8
5
- flake8-bugbear
6
- flake8-comprehensions
7
- flake8-typing-imports
4
+ black
8
5
9
6
virtualenv
10
7
You can’t perform that action at this time.
0 commit comments