road-accidents contains all the bricks you need to create a functionnal data science project.
The requirements for the project are the following:
- python3.6+
- make command
To check make is correctly installed, type make --version
Start by running make--version
and python --version
to make sure you have all the prerequists.
- Run
make setup
- activate your environement :
- Windows: .\wenv\Scripts\activate
- Linux: ./venv/bin/activate
- Start developping !
PS: To check that you're on the right envrionnement, type python -m road_accidents.src.main
.
Those command are targeting the road_accidents folder and the configuration is here.
- Code Quality: You can trigger those commands with
make check
.- Formatting with
black + isort
: To format usemake format
and check withmake black
andmake isort
forblack
andisort
respectively - type-checking with
mypy
: You can usemake mypy
to check the types and detect errors - Linting with
flake8 + pylint
: You can usemake flake8
andmake pylint
to lint your code usingflake8
andpylint
respectively.
- Formatting with
- Tests:
- For testing we use
pytest
and target the tests in the road_accidents usingmake test
- You can generate a coverage report using
make coverage
and a html version usingmake coverage-html
- For testing we use