Skip to content

DWesl/check-python-h-first

Repository files navigation

Project generated with PyScaffold

check-python-h-first

Package to check whether Python.h is included first in any headers or source files. Python advises extension modules include Python.h before other files. This package checks that source files conform to that suggestion.

This file does not handle mazes of #ifdef: it checks each file for #include, whether the file included is Python.h, and, if so, whether that's the first #include in that file.

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd check-python-h-first
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don't forget to tell your contributors to also install and use pre-commit.

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

About

Package to check whether Python.h is included first in any headers or source files

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published