diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..51cfbc1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +--- +repos: + - repo: https://github.com/google/yapf + rev: v0.43.0 + hooks: + - id: yapf + + - repo: https://github.com/pycqa/flake8 + rev: 7.1.1 + hooks: + - id: flake8 + + - repo: https://github.com/PyCQA/isort + rev: 5.13.2 + hooks: + - id: isort + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.14.0 + hooks: + - id: mypy + args: [--config-file, pyproject.toml] + pass_filenames: false + additional_dependencies: + - sphinx + - types-docutils + - playwright + - portpicker + - types-portpicker diff --git a/doc/conf.py b/doc/conf.py index 434a291..5f7cd77 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -32,8 +32,6 @@ templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] - - # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b2a8a15 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.mypy] +python_version = 3.9 +pretty = true +packages = ["sphinxcontrib"] diff --git a/setup.cfg b/setup.cfg index a47223d..d3a3be9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -52,7 +52,3 @@ based_on_style = yapf [flake8] indent-size = 2 - -[mypy] -python_version = 3.9 -pretty = True