Skip to content

Wikimedia-Sverige/.github-python

 
 

Repository files navigation

.github-python

Defaults for Python repos by this org.

Requirements

Python 3.12. May work with other versions, but not guaranteed.

Development

It's recommended to do development with Venv. To set up the environment run:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Testing

To install test modules run:

pip install -r requirements-test.txt

Testing is done by Tox. Run tox for all tests. Settings can be changed in tox.ini.

Unit tests are run with Pytest. Test files live in tests/.

Style is checked by Flake8.

Module import order is handled by Isort.

CI

Github actions are specified in .github/workflows/python.yml. By deafult Tox will run when code is pushed.

About

Defaults for Python repos by this org

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%