add date-time features as patches #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruff & Docformat | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
check: ["ruff", "docformatter"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install tools | |
run: pip install "ruff==0.2.2" "docformatter[tomli]==1.5.0" | |
- name: Ruff (Flake8) | |
if: matrix.check == 'ruff' | |
working-directory: src/ | |
run: ruff check . | |
- name: Docformatter | |
if: matrix.check == 'docformatter' | |
run: docformatter --check -r src/ |