Skip to main content

flake8-pytest-importorskip

pypi Python: 3.6+ Downloads Build Status Code coverage License: Apache 2.0 Code style: black

Description

Treat pytest.importorskip as an import statement, not code, to silence the "module level import not at top of file" (E402) from pycodestyle

It allows code such as this to pass without having to globally disable E402.

It does this in a slightly hacky way (see the docs of kgb for details) , so it may break in future versions of pycodestyle.

Checks:

None

Installation

pip install flake8-pytest-importorskip

Usage

flake8 <your code>

For developers

Create venv and install deps

make init

Install git precommit hook

make precommit_install

Run linters, autoformat, tests etc.

make pretty lint test

Bump new version

make bump_major
make bump_minor
make bump_patch

License

Apache 2.0

Change Log

Unreleased

  • ...

1.1.0 - 2021-03-01

  • Replace accessing private state of flake8 plugins with wrapping/spying on function, using kgb

1.0.0 - 2021-02-19

  • initial

Metadata

Release files for flake8-pytest-importorskip 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-pytest-importorskip 1.1.0
File Size Uploaded Provenance Actions
flake8-pytest-importorskip-1.1.0.tar.gz 3.4 kB Without provenance Details for flake8-pytest-importorskip-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-pytest-importorskip 1.1.0
File Interpreter ABI Platform Actions
flake8_pytest_importorskip-1.1.0-py3-none-any.whl Python 3 none any Details for flake8_pytest_importorskip-1.1.0-py3-none-any.whl

Total release size: 7.1 kB

Release files / flake8-pytest-importorskip-1.1.0.tar.gz

Download URL flake8-pytest-importorskip-1.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
900f284f4589a033490bc19665914761aba72c9eb7b65cf631da85fc1a907b90
BLAKE2b-256 checksum
How to use checksums
4074eb50ae051b3914eccb0fd65323fb92acb54e694fcdbd2ef02c765cb61e09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Release files / flake8_pytest_importorskip-1.1.0-py3-none-any.whl

Download URL flake8_pytest_importorskip-1.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
640ef10a498d279fba88cf6723f766895257374bdeb29dbc5a4e670d45b9b47d
BLAKE2b-256 checksum
How to use checksums
a6ed1f271a47d3660baaf08175c7e3d267ff7462d6aa4e0b593db2858cb6aefb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Security for flake8-pytest-importorskip 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page