Posts by Category

python

Recommended pre-commit checks for Python

less than 1 minute read

For my projects I use this pre-commit template. In the past I’ve also integrated pylint and mypy, but these make committing slow for big projects so I’ve kep...

Static code analysis tools for Python and CI

1 minute read

Python has some great free and open-source static code analysis tools. I recommend integrating them into you Continuous Integration (CI) pipelines so they ru...

The security risks of pip and PyPI

2 minute read

Installing packages with pip via PyPI is very convenient but dangerous. Here I explain the risks of running pip install <package>.

Safe Python code formatting with autopep8

4 minute read

Having consistent code formatting in a team makes it easier to review and read other people’s code. Here I explain how I use autopep8 to format code safely. ...

Back to top ↑

git

Recommended pre-commit checks for Python

less than 1 minute read

For my projects I use this pre-commit template. In the past I’ve also integrated pylint and mypy, but these make committing slow for big projects so I’ve kep...

Static code analysis tools for Python and CI

1 minute read

Python has some great free and open-source static code analysis tools. I recommend integrating them into you Continuous Integration (CI) pipelines so they ru...

Random Git tips

less than 1 minute read

A collection of unrelated but useful Git tips.

A simple Merge Git workflow

5 minute read

In this post I explain the Git workflow I’ve found most useful, easy, clean and safe to work with using only git merge.

Back to top ↑

notes

Back to top ↑

security

Writing SELinux rules for RPM

1 minute read

When I needed to write a SELinux policy for a web application running on httpd for CentOS 7, I was surprised by the lack of documentation. Despite SELinux be...

Back to top ↑