| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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,7 +3,6 @@ | |||
| 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,7 +5,6 @@ | |||
| 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,4 +1,3 @@ | |||
| 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,7 +1,6 @@ | |||
| 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,4 +1,3 @@ | |||
| 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,3 +1,2 @@ | |||
| 1 | 1 | """Initialize the Repo package""" | |
| 2 | - # flake8: noqa | ||
| 3 | 2 | from .base import Repo as Repo | |
| Back | FazBrowse Home | New Git URL |
0 commit comments