More tooling

This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-29 22:35:00 -06:00
parent fbb843a36c
commit 01743bfbdd
7 changed files with 31 additions and 14 deletions

View file

@ -1,21 +1,24 @@
[isort]
line_length=100
indent=2
line_length = 100
indent = 4
# 1/Vertical
multi_line_output=3
lines_after_imports=2
default_section=THIRDPARTY
known_localfolder=datalog
sections=FUTURE,STDLIB,LOCALFOLDER,THIRDPARTY
force_sort_within_sections=1
force_alphabetical_sort_within_sections=1
combine_as_imports=1
multi_line_output = 3
lines_after_imports = 2
default_section = THIRDPARTY
known_localfolder = datalog
sections = FUTURE,STDLIB,LOCALFOLDER,THIRDPARTY
force_sort_within_sections = 1
force_alphabetical_sort_within_sections = 1
combine_as_imports = 1
[distutils]
index-servers = pypi
[reqman]
shitlist=pip,pkg_resources,setuptools
shitlist = pip,pkg_resources,setuptools
[flake8]
extend-ignore = E203,E501,F405,F403,E731
[pypi]
repository = https://pypi.python.org/pypi

7
tools/flake8/BUILD Normal file
View file

@ -0,0 +1,7 @@
py_binary(
name = "flake8",
main = "__main__.py",
deps = [
py_requirement("flake8"),
],
)

5
tools/flake8/__main__.py Normal file
View file

@ -0,0 +1,5 @@
from flake8.main import cli
if __name__ == "__main__":
cli.main()

View file

@ -14,7 +14,7 @@ function brl() {
return "$?"
}
brl tools/autoflake -ir "${DIRS[@]}"
brl tools/autoflake --remove-all-unused-imports -ir "${DIRS[@]}"
brl tools/isort "${DIRS[@]}"
brl tools/unify --quote '"' -ir "${DIRS[@]}"
brl projects/reqman clean tools/python/requirements.txt

View file

@ -13,7 +13,7 @@ function brl() {
return "$?"
}
brl tools/autoflake -r "${DIRS[@]}"
brl tools/flake8 "${DIRS[@]}"
brl tools/isort --check "${DIRS[@]}"
brl tools/unify --quote '"' -cr "${DIRS[@]}"
brl tools/reqman lint tools/python/requirements.txt

View file

@ -11,6 +11,7 @@ click==7.1.2
commonmark==0.9.1
coverage==5.5
docutils==0.17
flake8==3.9.2
Flask==2.0.1
hypothesis==6.14.5
idna==2.10
@ -29,6 +30,7 @@ lxml==4.6.3
m2r==0.2.1
Markdown==3.3.4
MarkupSafe==2.0.1
mccabe==0.6.1
meraki==1.7.2
mirakuru==2.4.1
mistune==0.8.4
@ -47,6 +49,7 @@ psutil==5.8.0
psycopg2==2.9.1
pudb==2020.1
py==1.10.0
pycodestyle==2.7.0
pyflakes==2.3.1
Pygments==2.8.1
pyparsing==2.4.7

View file

@ -17,7 +17,6 @@ import sys
import click
import livereload
from sphinx.application import Sphinx
from sphinx.cmd.build import main as build
from sphinx.cmd.quickstart import main as new
from sphinx.ext.apidoc import main as apidoc
from sphinx.ext.autosummary.generate import main as autosummary