Skip to content

Commit

Permalink
Merge branch 'main' into fix/docs-no-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Mar 14, 2022
2 parents c1d5d2e + 0cf14f3 commit 175a36f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ repos:
- rich>=11.0.0
- ruamel.yaml
- sphinx>=4.4.0
- types-PyYAML
- types-pyyaml>=6.0.4
- types-dataclasses
- types-docutils
- types-pkg_resources
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import sys
from pathlib import Path
from typing import List
from typing import List, Optional

import pkg_resources

Expand Down Expand Up @@ -96,7 +96,7 @@
apidoc_module_first = False
apidoc_output_dir = "pkg"
apidoc_separate_modules = True
apidoc_toc_file = None
apidoc_toc_file: Optional[str] = None

# General substitutions.
project = "Ansible Lint Documentation"
Expand Down
5 changes: 3 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.6
python_version = 3.8
color_output = True
error_summary = True
disallow_untyped_calls = True
Expand All @@ -9,7 +9,8 @@ disallow_any_generics = True
; warn_redundant_casts = True
; warn_return_any = True
; warn_unused_configs = True
exclude = test/local-content
# site-packages is here to help vscode mypy integration getting confused
exclude = (build|test/local-content|site-packages)

# 3rd party ignores
[mypy-ansible]
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/fake_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ansible.module_utils.basic import AnsibleModule


def main():
def main() -> None:
"""Return the module instance."""
return AnsibleModule(
argument_spec=dict(
Expand Down

0 comments on commit 175a36f

Please sign in to comment.