Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .mypy.ini

This file was deleted.

5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.910
hooks:
- id: mypy
additional_dependencies:
- types-PyYAML==5.4.3
- types-requests==2.25.1
10 changes: 10 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@
"depNameTemplate": "gitlab/gitlab-ce",
"datasourceTemplate": "docker",
"versioningTemplate": "loose"
},
{
"fileMatch": ["^.pre-commit-config.yaml$"],
"matchStrings": ["- (?<depName>.*?)==(?<currentValue>.*?)\n"],
"datasourceTemplate": "pypi",
"versioningTemplate": "pep440"
}
],
"packageRules": [
{
"packagePatterns": ["^gitlab\/gitlab-.+$"],
"automerge": true
},
{
"matchPackagePrefixes": ["types-"],
"groupName": "typing dependencies"
}
]
}
Empty file added docs/__init__.py
Empty file.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ profile = "black"
multi_line_output = 3
order_by_type = false

[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = "."

[[tool.mypy.overrides]] # Overrides for currently untyped modules
module = [
"docs.*",
"docs.ext.*",
"gitlab.v4.objects.*",
"setup",
"tests.functional.*",
"tests.functional.api.*",
"tests.unit.*"
]
ignore_errors = true

[[tool.mypy.overrides]] # Overrides to negate above patterns
module = [
"gitlab.v4.objects.projects"
]
ignore_errors = false

[tool.semantic_release]
version_variable = "gitlab/__version__.py:__version__"
commit_subject = "chore: release v{version}"
Expand Down
Empty file added tests/__init__.py
Empty file.
Empty file added tests/functional/__init__.py
Empty file.
Empty file.
Empty file.
Empty file added tests/unit/mixins/__init__.py
Empty file.