mirror of
https://github.com/thegeeklab/git-batch.git
synced 2024-11-21 18:40:40 +00:00
add linter config
This commit is contained in:
parent
554d671fa7
commit
c6142da0f8
8
.flake8
Normal file
8
.flake8
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[flake8]
|
||||||
|
# Temp disable Docstring checks D101, D102, D103, D107
|
||||||
|
ignore = E501, W503, F401, N813, D101, D102, D103, D107
|
||||||
|
max-line-length = 100
|
||||||
|
inline-quotes = double
|
||||||
|
exclude = .git,.tox,__pycache__,build,dist,tests,*.pyc,*.egg-info,.cache,.eggs,env*
|
||||||
|
application-import-names = ansiblelater
|
||||||
|
format = ${cyan}%(path)s:%(row)d:%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
|
@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
import git
|
import git
|
||||||
|
|
||||||
from gitbatch import __version__
|
from gitbatch import __version__
|
||||||
from urllib.parse import urlparse
|
|
||||||
|
|
||||||
logger = logging.getLogger("gitbatch")
|
logger = logging.getLogger("gitbatch")
|
||||||
formatter = logging.Formatter("[%(levelname)s] %(message)s")
|
formatter = logging.Formatter("[%(levelname)s] %(message)s")
|
||||||
|
20
setup.cfg
Normal file
20
setup.cfg
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
[metadata]
|
||||||
|
description-file = README.md
|
||||||
|
license_file = LICENSE
|
||||||
|
|
||||||
|
[bdist_wheel]
|
||||||
|
universal = 1
|
||||||
|
|
||||||
|
[isort]
|
||||||
|
default_section = THIRDPARTY
|
||||||
|
known_first_party = gitbatch
|
||||||
|
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
||||||
|
force_single_line = true
|
||||||
|
line_length = 120
|
||||||
|
skip_glob = **/.venv/*
|
||||||
|
|
||||||
|
[tool:pytest]
|
||||||
|
filterwarnings =
|
||||||
|
ignore::FutureWarning
|
||||||
|
ignore:.*collections.*:DeprecationWarning
|
||||||
|
ignore:.*pep8.*:FutureWarning
|
Loading…
Reference in New Issue
Block a user