Skip to content

Utils to manage our bibliography in different ways (cleaning, adding new entries, searching, etc.)

Notifications You must be signed in to change notification settings

Philosophie-ch/biblioUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bibliography Utils for Philosophie.ch

Development

It is recommended that you create a virtual environment to install the dependencies.

python3 -m venv .venv
source .venv/bin/activate
pip install .[dev]

Then, this project contains some custom made Rust crates that are used as python libraries, using the python package maturin with the pyo3 backend. To build the Rust library, you need to have Rust installed on your machine, then run the following:

cd rust_crate
maturin build --release

This will install the Rust library in the virtual environment, which allows it to be used as any other Python library. It is a typed library (see rust_crate/rust_crate.pyi), so it doesn't conflict with the mypy static type checker.

Typing, Tests, Formatting

To assure the quality of your code, please run the following commands before pushing your changes. At the root of the project:

  1. Static type checking:
mypy .

Fix any errors before proceeding.

  1. Tests:
pytest

Fix any errors before proceeding.

  1. Formatting:
black .

Note: will format the code in place, with no confirmation.

About

Utils to manage our bibliography in different ways (cleaning, adding new entries, searching, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published