Skip to content

Commit

Permalink
Merge branch 'main' into add-python-3.13-1
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 24, 2024
2 parents b25e270 + 1106210 commit 62b533b
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 95 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.3'
rev: '3.0.3'
hooks:
- id: editorconfig-checker
alias: ec
- repo: https://github.com/pycqa/flake8
rev: '7.1.0'
rev: '7.1.1'
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
Expand All @@ -21,7 +21,7 @@ repos:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
Expand All @@ -30,6 +30,6 @@ repos:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.11'
rev: 'v2.12'
hooks:
- id: vulture
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tests to ensure network calls are prevented.

## Requirements

- [Pytest](https://github.com/pytest-dev/pytest) 6.2.5 or greater
- [Pytest](https://github.com/pytest-dev/pytest) 7.0 or greater

## Installation

Expand All @@ -43,21 +43,21 @@ Run `pytest --disable-socket`, tests should fail on any access to `socket` or
libraries using socket with a `SocketBlockedError`.

To add this flag as the default behavior, add this section to your
[`pytest.ini`](https://docs.pytest.org/en/6.2.x/customize.html#pytest-ini):
[`pytest.ini`](https://docs.pytest.org/en/stable/reference/customize.html#pytest-ini):

```ini
[pytest]
addopts = --disable-socket
```

or add this to your [`setup.cfg`](https://docs.pytest.org/en/6.2.x/customize.html#setup-cfg):
or add this to your [`setup.cfg`](https://docs.pytest.org/en/stable/reference/customize.html#setup-cfg):

```ini
[tool:pytest]
addopts = --disable-socket
```

or update your [`conftest.py`](https://docs.pytest.org/en/6.2.x/writing_plugins.html#conftest-py-plugins) to include:
or update your [`conftest.py`](https://docs.pytest.org/en/stable/how-to/writing_plugins.html#conftest-py-local-per-directory-plugins) to include:

```python
from pytest_socket import disable_socket
Expand Down
Loading

0 comments on commit 62b533b

Please sign in to comment.