We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
black
1 parent21ec529 commita7c5d88Copy full SHA for a7c5d88
.flake8
.github/workflows/pythonpackage.yml
@@ -44,10 +44,10 @@ jobs:
44
# and cause subsequent tests to fail
45
cat test/fixtures/.gitconfig >> ~/.gitconfig
46
47
- -name:Lint withflake8
+ -name:Lint withBlack
48
run:|
49
set -x
50
-flake8
+black --check .
51
52
-name:Check types with mypy
53
# With new versions of pypi new issues might arise. This is a problem if there is nobody able to fix them,
README.md
@@ -107,16 +107,14 @@ with MINGW's.
107
Ensure testing libraries are installed.
108
In the root directory, run:`pip install -r test-requirements.txt`
109
110
-To lint, run:`flake8`
111
-
112
To typecheck, run:`mypy -p git`
113
114
To test, run:`pytest`
115
116
-Configuration for flake8 is in the ./.flake8 file.
117
118
Configurations for mypy, pytest and coverage.py are in ./pyproject.toml.
119
+Run`black` for formatting.
+
120
The same linting and testing will also be performed against different supported python versions
121
upon submitting a pull request (or on each push if you have a fork with a "main" branch and actions enabled).
122
git/__init__.py
@@ -3,7 +3,6 @@
3
#
4
# This module is part of GitPython and is released under
5
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6
-# flake8: noqa
7
# @PydevCodeAnalysisIgnore
8
fromgit.excimport*# @NoMove @IgnorePep8
9
importinspect
git/cmd.py
@@ -947,7 +947,7 @@ def execute(
947
)
948
else:
949
cmd_not_found_exception= (
950
-FileNotFoundError# NOQA # exists, flake8 unknown @UndefinedVariable
+FileNotFoundError
951
952
# end handle
953
git/compat.py
@@ -5,7 +5,6 @@
"""utilities to help provide compatibility with python 3"""
10
importlocale
11
importos
git/index/__init__.py
@@ -1,4 +1,3 @@
1
"""Initialize the index package"""
2
from .baseimport*
from .typimport*
git/objects/__init__.py
@@ -1,7 +1,6 @@
"""
Import all submodules main classes into the package space
git/refs/__init__.py
# import all modules in order, fix the names they require
from .symbolicimport*
from .referenceimport*
git/repo/__init__.py
@@ -1,3 +1,2 @@
"""Initialize the Repo package"""
from .baseimportRepoasRepo