@@ -6,8 +6,8 @@ build-backend = "setuptools.build_meta"
66name = " GitPython"
77description = " GitPython is a Python library used to interact with Git repositories"
88authors = [
9- {name = " Sebastian Thiel" , email = " byronimo@gmail.com" },
10- {name = " Michael Trier" , email = " mtrier@gmail.com" },
9+ { name = " Sebastian Thiel" , email = " byronimo@gmail.com" },
10+ { name = " Michael Trier" , email = " mtrier@gmail.com" },
1111]
1212readme = " README.md"
1313requires-python = " >=3.8"
@@ -51,10 +51,10 @@ doc = [
5151include-package-data = true
5252
5353[tool .setuptools .dynamic ]
54- version = {file = " VERSION" }
55- dependencies = {file = " requirements.txt" }
56- optional-dependencies."test" = {file = " test-requirements.txt" }
57- optional-dependencies."gix" = {file = " gix-requirements.txt" }
54+ version = { file = " VERSION" }
55+ dependencies = { file = " requirements.txt" }
56+ optional-dependencies."test" = { file = " test-requirements.txt" }
57+ optional-dependencies."gix" = { file = " gix-requirements.txt" }
5858
5959[tool .setuptools .packages .find ]
6060include = [" git" , " git.*" ]
@@ -64,7 +64,7 @@ addopts = "--cov=git --cov-report=term -rfEX"
6464filterwarnings = " ignore::DeprecationWarning"
6565python_files = " test_*.py"
6666tmp_path_retention_policy = " failed"
67- testpaths = " test" # Space separated list of paths from root e.g test tests doc/testing.
67+ testpaths = " test" # Space separated list of paths from root e.g test tests doc/testing.
6868# --cov coverage
6969# --cov-report term # send report to terminal term-missing -> terminal with line numbers html xml
7070# --cov-report term-missing # to terminal with line numbers
@@ -74,6 +74,9 @@ testpaths = "test" # Space separated list of paths from root e.g test tests doc
7474# -ra # test summary: list all non-passing (fail, error, skip, xfail, xpass)
7575# --ignore-glob=**/gitdb/* # ignore glob paths
7676# filterwarnings ignore::WarningType # ignores those warnings
77+ markers = [
78+ " net: tests requiring network access, including local/loopback sockets; skip with -m 'not net' on network-restricted builders" ,
79+ ]
7780
7881[tool .mypy ]
7982files = [" git/" , " test/test_typing.py" , " test/test_remote_progress.py" ]
@@ -100,14 +103,8 @@ include = [
100103 " test/test_git.py" ,
101104 " test/test_remote_progress.py" ,
102105]
103- extraPaths = [
104- " gitdb" ,
105- " smmap" ,
106- ]
107- exclude = [
108- " gitdb" ,
109- " smmap" ,
110- ]
106+ extraPaths = [" gitdb" , " smmap" ]
107+ exclude = [" gitdb" , " smmap" ]
111108
112109[tool .coverage .run ]
113110source = [" git" ]
@@ -119,39 +116,33 @@ omit = ["*/git/ext/*"]
119116[tool .ruff ]
120117line-length = 120
121118# Exclude a variety of commonly ignored directories.
122- exclude = [
123- " git/ext/" ,
124- " gitdb/" ,
125- " smmap/" ,
126- " build" ,
127- " dist" ,
128- ]
119+ exclude = [" git/ext/" , " gitdb/" , " smmap/" , " build" , " dist" ]
129120# Enable Pyflakes `E` and `F` codes by default.
130121lint.select = [
131122 " E" ,
132- " W" , # See: https://pypi.org/project/pycodestyle
133- " F" , # See: https://pypi.org/project/pyflakes
123+ " W" , # See: https://pypi.org/project/pycodestyle
124+ " F" , # See: https://pypi.org/project/pyflakes
134125 # "I", # See: https://pypi.org/project/isort/
135126 # "S", # See: https://pypi.org/project/flake8-bandit
136127 # "UP", # See: https://docs.astral.sh/ruff/rules/#pyupgrade-up
137128]
138129lint.extend-select = [
139130 # "A", # See: https://pypi.org/project/flake8-builtins
140- " B" , # See: https://pypi.org/project/flake8-bugbear
141- " C4" , # See: https://pypi.org/project/flake8-comprehensions
142- " TC004" , # See: https://docs.astral.sh/ruff/rules/runtime-import-in-type-checking-block/
131+ " B" , # See: https://pypi.org/project/flake8-bugbear
132+ " C4" , # See: https://pypi.org/project/flake8-comprehensions
133+ " TC004" , # See: https://docs.astral.sh/ruff/rules/runtime-import-in-type-checking-block/
143134]
144135lint.ignore = [
145136 # If it becomes necessary to ignore any rules, list them here.
146137]
147138lint.unfixable = [
148- " F401" , # Module imported but unused
139+ " F401" , # Module imported but unused
149140]
150141
151142[tool .ruff .lint .per-file-ignores ]
152143"test/**" = [
153- " B018" , # useless-expression
144+ " B018" , # useless-expression
154145]
155146"fuzzing/fuzz-targets/**" = [
156- " E402" , # environment setup must happen before the `git` module is imported, thus cannot happen at top of file
147+ " E402" , # environment setup must happen before the `git` module is imported, thus cannot happen at top of file
157148]
0 commit comments