Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Dec 31, 2020
1 parent 37dcc81 commit 688d277
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 201 deletions.
29 changes: 0 additions & 29 deletions .flake8

This file was deleted.

6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[dev-packages]
black = "==19.10b0"
black = "==20.8b1"
flake8 = "*" #"~=3.5"
flake8-bugbear = "*" # "~=18.2"
flake8-quotes = "*" # "~=1.0"
Expand All @@ -18,12 +18,12 @@ tox = "*"
[packages]
GitPython = "*"
PyGithub = "*"
PyYAML = "~=5.2"
PyYAML = "*" # "~=5.2"
semantic_version = "*"
setuptools = ">=42.0"
snazzy = "*"
toml = "*"
twine = "~=3.2"
twine = "*" # "~=3.2"
wheel = "*"

[requires]
Expand Down
122 changes: 56 additions & 66 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ exclude = '''
# See https://black.readthedocs.io/en/stable/compatible_configs.html
profile = "black"
src_paths = ["yabs", "tests"]

# [tool.flake8]
# Flake8 currently does not support pyproject.toml.
# See [flake8] section in setup.cfg instead.
53 changes: 53 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,56 @@ exclude =
[options.entry_points]
console_scripts =
yabs = yabs.cli:run

# --- Alternative to pytest.ini ---------------------------------------------
[tool:pytest]
# Silence `PytestDeprecationWarning`
junit_family = legacy
; testpaths =
; tests
; src

# --- Flake8 Settings ----------------------------------------------------------

[flake8]
# G: enable 'flake8-logging-format'
enable-extensions = G

exclude =
__pycache__,
.cache,
.eggs,
.git,
.tox,
.vscode,
build,
dist,
docs

max-line-length = 99
# max-line-length = 88

# 'mccabe' plugin:
# max-complexity = 12

# max-annotations-complexity = 10
# max-expression-complexity = 10

# Ignore some errors that may be created by Black:
# - E203 whitespace before ':'
# - E501 line too long
# - W503 line break before binary operator
# - P101 format string does contain unindexed parameters
ignore = E203, E501, W503, P101

# Instead of strict E501, enable B950 for relaxed line length checking (and other bugbear warnings)
# select = B,C,D,E,F,I,N,P,PT,Q,S,T,W,B9

#
docstring-convention = all # google?

# Options for the flake8-quotes extension:
inline-quotes = double
multiline-quotes = """
docstring-quotes = """
avoid-escape = True

0 comments on commit 688d277

Please sign in to comment.