Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} gitpython-developers / GitPython Public Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 980 Star 5.1k Code Issues 166 Pull requests 11 Discussions Actions Security and quality 8 Insights Additional navigation options Code Issues Pull requests Discussions Actions Security and quality Insights FilesExpand file tree mainBreadcrumbsGitPython/pyproject.tomlCopy pathBlameMore file actionsBlameMore file actions Latest commit HistoryHistoryHistory86 lines (78 loc) · 2.67 KB mainBreadcrumbsGitPython/pyproject.tomlCopy pathTopFile metadata and controlsCodeBlame86 lines (78 loc) · 2.67 KBRawCopy raw fileDownload raw fileOpen symbols panelEdit and raw actions1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586[build-system]requires = ["setuptools"]build-backend = "setuptools.build_meta" [tool.pytest.ini_options]addopts = "--cov=git --cov-report=term -ra"filterwarnings = "ignore::DeprecationWarning"python_files = "test_*.py"tmp_path_retention_policy = "failed"testpaths = "test" # Space separated list of paths from root e.g test tests doc/testing.# --cov coverage# --cov-report term # send report to terminal term-missing -> terminal with line numbers html xml# --cov-report term-missing # to terminal with line numbers# --cov-report html:path # html file at path# --maxfail # number of errors before giving up# -rfE # default test summary: list fail and error# -ra # test summary: list all non-passing (fail, error, skip, xfail, xpass)# --ignore-glob=**/gitdb/* # ignore glob paths# filterwarnings ignore::WarningType # ignores those warnings [tool.mypy]files = ["git/", "test/deprecation/"]disallow_untyped_defs = trueno_implicit_optional = truewarn_redundant_casts = truewarn_unused_ignores = true # Useful in general, but especially in test/deprecation.warn_unreachable = trueimplicit_reexport = true# strict = true# TODO: Remove when 'gitdb' is fully annotated.exclude = ["^git/ext/gitdb"][[tool.mypy.overrides]]module = "gitdb.*"ignore_missing_imports = true [tool.coverage.run]source = ["git"] [tool.coverage.report]include = ["*/git/*"]omit = ["*/git/ext/*"] [tool.ruff]target-version = "py37"line-length = 120# Exclude a variety of commonly ignored directories.exclude = [ "git/ext/", "build", "dist",]# Enable Pyflakes `E` and `F` codes by default.lint.select = [ "E", "W", # See: https://pypi.org/project/pycodestyle "F", # See: https://pypi.org/project/pyflakes # "I", # See: https://pypi.org/project/isort/ # "S", # See: https://pypi.org/project/flake8-bandit # "UP", # See: https://docs.astral.sh/ruff/rules/#pyupgrade-up]lint.extend-select = [ # "A", # See: https://pypi.org/project/flake8-builtins "B", # See: https://pypi.org/project/flake8-bugbear "C4", # See: https://pypi.org/project/flake8-comprehensions "TC004", # See: https://docs.astral.sh/ruff/rules/runtime-import-in-type-checking-block/]lint.ignore = [ # If it becomes necessary to ignore any rules, list them here.]lint.unfixable = [ "F401", # Module imported but unused] [tool.ruff.lint.per-file-ignores]"test/**" = [ "B018", # useless-expression]"fuzzing/fuzz-targets/**" = [ "E402", # environment setup must happen before the `git` module is imported, thus cannot happen at top of file] [tool.codespell]ignore-words-list="afile,assertIn,doesnt,gud,uptodate"#count = truequiet-level = 3 You can’t perform that action at this time.