Commit graph

7 commits

Author SHA1 Message Date
Noorhteen Raja NJ
5dafceef47
chore: upgrade black and mypy (#4399)
* chore: upgrade black and mypy

* chore: update black config

ignore generated files from ply

* chore: upgrade pre-commit plugins
2021-07-29 18:31:52 -04:00
Daniel Shimon
214997d170
pre-commit: Lint tests dir (#4298) 2021-05-29 23:44:31 +03:00
Noorhteen Raja NJ
948129b7a0
feat: add flake8-bugbear (#4288)
* feat: add flake8-bugbear

* style: remove pylint disable comments

* chore: add flake8 as pre-push check

* chore: add bunch pf pre-commit hooks

* style: remove hasattr __call__
2021-05-26 23:15:34 +03:00
Noorhteen Raja NJ
fd597e6971
chore (ci): improve ci workflows and deps management (#3873)
* chore (ci): improve elm job speed by caching

* chore (ci): update ci generator script to be run from any dir

* chore: update pre-commit to use local black binary

* chore: mypy config skip amalgam generated modules

* chore: run-tests.xsh parameterisation

use argparser to make this file a cli

* feat: use requirements.txt during CI

* feat: run black/flake8/mypy during ci from pip-env

* chore: mypy version 0.790 fix

since the loose pinning on mypy version causes new PRs to fail

* refactor: update github actions template

remove poetry/environment.yml files
2020-10-19 11:52:37 -04:00
Sean Farley
67b97b9571 pre-commit: relax python version to any python version 3 2019-10-02 14:52:56 -05:00
Anthony Scopatz
952c74963f version black in precommit 2019-07-22 15:29:58 -04:00
Sean Farley
ec3d2ca8ad git: add pre-commit dependency
This also adds documentation for how to install this git pre-commit hook
which will run black before committing. The only downside to doing that
is the, perhaps confusing, initial run which will clone the black
repository before a dev's first commit.

Running on the command-line will be quite obvsious since the default
output shows what pre-commit is doing. But running in a gui or
editor (e.g. magit) will hide that. Viewer discretion is advised.
2019-07-13 15:44:23 -05:00