Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Improve setup performance #401

Merged
merged 14 commits into from Oct 6, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -40,6 +40,8 @@ pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
prof/
.benchmarks/
htmlcov/
.tox/
.coverage
Expand Down
134 changes: 133 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pyproject.toml
Expand Up @@ -46,6 +46,9 @@ mypy = "^0.991"
black = "^22.12.0"
pdbpp = "^0.10.3"
pytest-mock = "^3.10.0"
pytest-profiling = "^1.7.0"
pytest-benchmark = "^4.0.0"
pytest-line-profiler = "^0.2.1"

[tool.poetry.group.docs.dependencies]
Sphinx = "4.5.0"
Expand All @@ -60,13 +63,14 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
addopts = "--ignore=docs/conf.py --ignore=docs/auto_examples/ --ignore=docs/_build/ --ignore=tests/examples/ --cov --cov-config .coveragerc --doctest-glob='*.md' --doctest-modules --doctest-continue-on-failure"
addopts = "--ignore=docs/conf.py --ignore=docs/auto_examples/ --ignore=docs/_build/ --ignore=tests/examples/ --cov --cov-config .coveragerc --doctest-glob='*.md' --doctest-modules --doctest-continue-on-failure --benchmark-autosave"
doctest_optionflags = "ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"

[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disable_error_code = "annotation-unchecked"

[[tool.mypy.overrides]]
module = [
Expand Down