-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure renovate, nd separate requirements for each tox.ini e…
…nvironment (use .in files for spec).
- Loading branch information
Showing
21 changed files
with
627 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.coverage | ||
.kube/ | ||
*.charm | ||
build/ | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright 2022 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
# Testing tools configuration | ||
[tool.coverage.run] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
log_cli_level = "INFO" | ||
|
||
# Formatting tools configuration | ||
[tool.black] | ||
line-length = 99 | ||
target-version = ["py38"] | ||
|
||
[tool.isort] | ||
line_length = 99 | ||
profile = "black" | ||
|
||
# Linting tools configuration | ||
[tool.flake8] | ||
max-line-length = 99 | ||
max-doc-length = 99 | ||
max-complexity = 10 | ||
exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"] | ||
select = ["E", "W", "F", "C", "N", "R", "D", "H"] | ||
# Ignore W503, E501 because using black creates errors with this | ||
# Ignore D107 Missing docstring in __init__ | ||
ignore = ["W503", "E501", "D107"] | ||
# D100, D101, D102, D103: Ignore missing docstrings in tests | ||
per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"] | ||
docstring-convention = "google" | ||
# Check for properly formatted copyright header in each file | ||
copyright-check = "True" | ||
copyright-author = "Canonical Ltd." | ||
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"rebaseWhen": "behind-base-branch", | ||
"dependencyDashboard": false, | ||
"pip-compile": { | ||
"fileMatch": [ | ||
"(^|/)requirements.*\\.in$" | ||
], | ||
"lockFileMaintenance": { | ||
"schedule": null | ||
} | ||
}, | ||
"packageRules": [ | ||
{ | ||
"groupName": "testing deps", | ||
"matchPackagePatterns": [ | ||
"^black$", | ||
"codespell", | ||
"flake8", | ||
"flake8-builtins", | ||
"flake8-copyright", | ||
"flake8-docstrings", | ||
"isort", | ||
"pep8-naming", | ||
"pyproject-flake8", | ||
"pytest", | ||
"pytest-asyncio", | ||
"selenium", | ||
"selenium-wire" | ||
], | ||
"automerge": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
black | ||
isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# To update, run: | ||
# | ||
# pip-compile --resolver=backtracking ./requirements-fmt.in | ||
# | ||
black==22.10.0 | ||
# via -r ./requirements-fmt.in | ||
click==8.1.3 | ||
# via black | ||
isort==5.10.1 | ||
# via -r ./requirements-fmt.in | ||
mypy-extensions==0.4.3 | ||
# via black | ||
pathspec==0.10.2 | ||
# via black | ||
platformdirs==2.5.4 | ||
# via black | ||
tomli==2.0.1 | ||
# via black | ||
typing-extensions==4.4.0 | ||
# via black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
juju | ||
pytest-operator | ||
selenium | ||
selenium-wire | ||
-r requirements.txt |
Oops, something went wrong.