Skip to content

Commit

Permalink
Apply updates from cookiecutter
Browse files Browse the repository at this point in the history
This automated commit applies the latest updates from our cookiecutters [1] to
this repo.

[1]: https://github.com/hypothesis/cookiecutters
  • Loading branch information
github-actions[bot] authored and seanh committed Oct 3, 2023
1 parent 1d1f526 commit 632916f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: python -m pip install 'tox<4'
- run: tox -e tests
env:
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
- name: Upload coverage file
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ jobs = 0 # Use one process for CPU.
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.comparetozero",
"pylint.extensions.docparams",
"pylint.extensions.emptystring",
"pylint.extensions.mccabe",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.redefined_variable_type",
Expand All @@ -95,6 +93,8 @@ enable = [
"deprecated-pragma",
"useless-suppression",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-zero",
"use-implicit-booleaness-not-comparison-to-string",
]
disable = [
# Docstrings are encouraged but we don't want to enforce that everything
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package_dir =
packages = find:
python_requires = >=3.8
install_requires =
importlib_metadata;python_version<"3.8."

[options.packages.find]
where = src
Expand Down
4 changes: 2 additions & 2 deletions tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ jobs = 0 # Use one process for CPU.
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.comparetozero",
"pylint.extensions.docparams",
"pylint.extensions.emptystring",
"pylint.extensions.mccabe",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.redefined_variable_type",
Expand All @@ -25,6 +23,8 @@ enable = [
"deprecated-pragma",
"useless-suppression",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-zero",
"use-implicit-booleaness-not-comparison-to-string",
]
disable = [
# Docstrings are encouraged but we don't want to enforce that everything
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ setenv =
dev: NEW_RELIC_ENVIRONMENT = {env:NEW_RELIC_ENVIRONMENT:dev}
dev,tests,functests: PYTHONDEVMODE = {env:PYTHONDEVMODE:1}
tests,functests: PYTEST_PLUGINS = tests.pytest_plugins.factory_boy
tests: COVERAGE_FILE = {env:COVERAGE_FILE:.coverage.{envname}}
passenv =
HOME
PYTEST_ADDOPTS
Expand All @@ -31,12 +32,13 @@ deps =
format,checkformatting: black
format,checkformatting: isort
lint: toml
lint: pylint
lint: pylint>=3.0.0
lint: pydocstyle
lint: pycodestyle
lint,tests: pytest-mock
lint,tests,coverage: coverage[toml]
lint,tests,functests: pytest
tests: pytest-coverage
coverage: coverage[toml]
lint,tests,functests: factory-boy
lint,tests,functests: pytest-factoryboy
lint,tests,functests: h-matchers
Expand All @@ -55,8 +57,8 @@ commands =
lint: pylint --rcfile=tests/pyproject.toml tests
lint: pydocstyle src tests bin
lint: pycodestyle src tests bin
tests: coverage run -m pytest --failed-first --new-first --no-header --quiet {posargs:tests/unit/}
tests: python -m pytest --cov --cov-report= --cov-fail-under=0 --failed-first --new-first --no-header --quiet {posargs:tests/unit/}
functests: python -m pytest --failed-first --new-first --no-header --quiet {posargs:tests/functional/}
coverage: -coverage combine
coverage: coverage combine
coverage: coverage report
template: python3 bin/make_template {posargs}

0 comments on commit 632916f

Please sign in to comment.