Skip to content

Commit

Permalink
feat: add pre-commit configuration (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk authored Dec 27, 2024
1 parent ff42e91 commit 851570e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.mypy]
python_version = 3.9
pretty = true
packages = ["sphinxcontrib"]
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ based_on_style = yapf

[flake8]
indent-size = 2

[mypy]
python_version = 3.9
pretty = True

0 comments on commit 851570e

Please sign in to comment.