biglocalnews / civic-scraper

Tools for downloading agendas, minutes and other documents produced by local government
https://civic-scraper.readthedocs.io
Other
40 stars 13 forks source link

Add `pre-commit` workflow and functionality #172

Closed michplunkett closed 10 months ago

michplunkett commented 10 months ago

Describe your changes

Added formatting, formatted files, and added a PR template.

Checklist before requesting a review

(civic-scraper-env) michaelp@infra04-wg361 civic-scraper % make lint
  __________
 |BIG🌲LOCAL|
 |&&& ======|
 |=== ======|  This is a Big Local News automation
 |=== == %%%|
 |[_] ======|          💅 Linting code 💅
 |=== ===!##|
 |__________|

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
trim trailing whitespace.................................................Passed
check docstring is first.................................................Passed
check json...............................................................Passed
check for case conflicts.................................................Passed
check toml...............................................................Passed
check for merge conflicts................................................Passed
check xml............................................(no files to check)Skipped
check yaml...............................................................Passed
fix end of files.........................................................Passed
check for broken symlinks............................(no files to check)Skipped
mixed line ending........................................................Passed
sort simple yaml files...............................(no files to check)Skipped
fix python encoding pragma...............................................Passed
pretty format json.......................................................Passed
check blanket noqa.......................................................Passed
check for not-real mock methods..........................................Passed
check for eval().........................................................Passed
use logger.warning(......................................................Passed
Run isort to sort imports................................................Passed
flake8...................................................................Passed
black....................................................................Passed
(civic-scraper-env) michaelp@infra04-wg361 civic-scraper %