Skip to content

Commit d581102

Browse files
committed
Bump repo-config to v0.6.2
Signed-off-by: TalweSingh <[email protected]>
1 parent 9b7253c commit d581102

File tree

9 files changed

+252
-35
lines changed

9 files changed

+252
-35
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: "pip"
44
directory: "/"
55
schedule:
6-
interval: "daily"
6+
interval: "weekly"
77
time: "07:00"
88
labels:
99
- "part:tooling"
@@ -13,11 +13,28 @@ updates:
1313
versioning-strategy: auto
1414
# Allow up to 10 open pull requests for updates to dependency versions
1515
open-pull-requests-limit: 10
16+
# We group production and development ("optional" in the context of
17+
# pyproject.toml) dependency updates when they are patch and minor updates,
18+
# so we end up with less PRs being generated.
19+
# Major updates are still managed, but they'll create one PR per
20+
# dependency, as major updates are expected to be breaking, it is better to
21+
# manage them individually.
22+
groups:
23+
required:
24+
dependency-type: "production"
25+
update-types:
26+
- "minor"
27+
- "patch"
28+
optional:
29+
dependency-type: "development"
30+
update-types:
31+
- "minor"
32+
- "patch"
1633

1734
- package-ecosystem: "github-actions"
1835
directory: "/"
1936
schedule:
20-
interval: "daily"
37+
interval: "weekly"
2138
time: "06:00"
2239
labels:
2340
- "part:tooling"
@@ -34,10 +51,8 @@ updates:
3451
# + `allow` one doesn't seem to work.
3552
ignore:
3653
- dependency-name: "submodules/frequenz-api-common"
37-
# The google api common repo changes very seldom, so there is no need to
38-
# check very often.
3954
schedule:
40-
interval: "monthly"
55+
interval: "weekly"
4156
time: "06:00"
4257
labels:
4358
- "part:tooling"

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
- LICENSE
1414

1515
"part:tests":
16+
- "**/conftest.py"
1617
- "pytests/**"
1718

1819
"part:tooling":
1920
- "**/*.ini"
2021
- "**/*.toml"
2122
- "**/*.yaml"
2223
- "**/*.yml"
24+
- "**/conftest.py"
2325
- ".editorconfig"
2426
- ".git*"
2527
- ".git*/**"

.github/workflows/ci.yaml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,17 @@ jobs:
5555
- ubuntu-20.04
5656
python:
5757
- "3.11"
58+
nox-session:
59+
# To speed things up a bit we use the special ci_checks_max session
60+
# that uses the same venv to run multiple linting sessions
61+
- "ci_checks_max"
62+
- "pytest_min"
5863
runs-on: ${{ matrix.os }}
5964

6065
steps:
66+
- name: Print environment (debug)
67+
run: env
68+
6169
- name: Fetch sources
6270
uses: actions/checkout@v3
6371
with:
@@ -73,11 +81,25 @@ jobs:
7381
run: |
7482
python -m pip install --upgrade pip
7583
python -m pip install -e .[dev-noxfile]
84+
pip freeze
85+
86+
- name: Create nox venv
87+
env:
88+
NOX_SESSION: ${{ matrix.nox-session }}
89+
run: nox --install-only -e "$NOX_SESSION"
90+
91+
- name: Print pip freeze for nox venv (debug)
92+
env:
93+
NOX_SESSION: ${{ matrix.nox-session }}
94+
run: |
95+
. ".nox/$NOX_SESSION/bin/activate"
96+
pip freeze
97+
deactivate
7698
7799
- name: Run nox
78-
# To speed things up a bit we use the special ci_checks_max session
79-
# that uses the same venv to run multiple linting sessions
80-
run: nox -e ci_checks_max pytest_min
100+
env:
101+
NOX_SESSION: ${{ matrix.nox-session }}
102+
run: nox -R -e "$NOX_SESSION"
81103
timeout-minutes: 10
82104

83105
build:
@@ -99,6 +121,7 @@ jobs:
99121
run: |
100122
python -m pip install -U pip
101123
python -m pip install -U build
124+
pip freeze
102125
103126
- name: Build the source and binary distribution
104127
run: python -m build
@@ -133,6 +156,7 @@ jobs:
133156
run: |
134157
python -m pip install -U pip
135158
python -m pip install .[dev-mkdocs]
159+
pip freeze
136160
137161
- name: Generate the documentation
138162
env:
@@ -215,6 +239,7 @@ jobs:
215239
run: |
216240
python -m pip install -U pip
217241
python -m pip install .[dev-mkdocs]
242+
pip freeze
218243
219244
- name: Fetch the gh-pages branch
220245
if: steps.mike-metadata.outputs.version

.gitignore

Lines changed: 147 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,156 @@
1-
build/*
2-
dist/*
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Auto-generated protobuf files
310
py/frequenz_api_dispatch.egg-info/*
411
py/frequenz/api/dispatch/**/*_pb2.py
512
py/frequenz/api/dispatch/**/*_pb2.pyi
613
py/frequenz/api/dispatch/**/*_pb2_grpc.py
714
py/frequenz/api/dispatch/**/*_pb2_grpc.pyi
8-
*.egg-info
9-
.nox/*
10-
__pycache__
15+
16+
# Distribution / packaging
17+
.Python
18+
build/
19+
develop-eggs/
20+
dist/
21+
downloads/
22+
eggs/
23+
.eggs/
24+
lib/
25+
lib64/
26+
parts/
27+
sdist/
28+
var/
29+
wheels/
30+
share/python-wheels/
31+
*.egg-info/
32+
.installed.cfg
33+
*.egg
34+
MANIFEST
35+
.vscode
36+
37+
# PyInstaller
38+
# Usually these files are written by a python script from a template
39+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
40+
*.manifest
41+
*.spec
42+
43+
# Installer logs
44+
pip-log.txt
45+
pip-delete-this-directory.txt
46+
47+
# Unit test / coverage reports
48+
htmlcov/
49+
.htmlcov*/
50+
.tox/
51+
.nox/
1152
.coverage
53+
.coverage.*
54+
.cache
55+
nosetests.xml
56+
coverage.xml
57+
*.cover
58+
*.py,cover
59+
.hypothesis/
60+
.pytest_cache/
61+
cover/
62+
63+
# Translations
64+
*.mo
65+
*.pot
66+
67+
# Django stuff:
68+
*.log
69+
local_settings.py
70+
db.sqlite3
71+
db.sqlite3-journal
72+
73+
# Flask stuff:
74+
instance/
75+
.webassets-cache
76+
77+
# Scrapy stuff:
78+
.scrapy
79+
80+
# Sphinx documentation
81+
docs/_build/
82+
83+
# PyBuilder
84+
.pybuilder/
85+
target/
86+
87+
# Jupyter Notebook
88+
.ipynb_checkpoints
89+
90+
# IPython
91+
profile_default/
92+
ipython_config.py
93+
94+
# pyenv
95+
# For a library or package, you might want to ignore these files since the code is
96+
# intended to run in multiple environments; otherwise, check them in:
97+
# .python-version
98+
99+
# pipenv
100+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
101+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
102+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
103+
# install all needed dependencies.
104+
#Pipfile.lock
105+
106+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
107+
__pypackages__/
108+
109+
# Celery stuff
110+
celerybeat-schedule
111+
celerybeat.pid
112+
113+
# SageMath parsed files
114+
*.sage.py
115+
116+
# Environments
117+
.env
118+
.venv
119+
env/
120+
venv/
121+
ENV/
122+
env.bak/
123+
venv.bak/
124+
# direnv https://github.com/direnv/direnv
125+
.envrc
126+
.direnv/
127+
128+
# Spyder project settings
129+
.spyderproject
130+
.spyproject
131+
132+
# Rope project settings
133+
.ropeproject
134+
135+
# mkdocs documentation
136+
/site
137+
138+
# mypy
139+
.mypy_cache/
140+
.dmypy.json
141+
dmypy.json
142+
143+
# Pyre type checker
144+
.pyre/
145+
146+
# pytype static type analyzer
147+
.pytype/
148+
149+
# Cython debug symbols
150+
cython_debug/
151+
152+
# PyCharm
153+
.idea
12154

13155
# Automatically generated documentation
14156
docs/reference/

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
exclude .cookiecutter-replay.json
2-
exclude .darglint
32
exclude .editorconfig
43
exclude .gitignore
54
exclude .gitmodules
@@ -9,6 +8,7 @@ exclude mkdocs.yml
98
exclude noxfile.py
109
exclude src/conftest.py
1110
recursive-exclude .github *
11+
recursive-exclude benchmarks *
1212
recursive-exclude docs *
1313
recursive-exclude pytests *
1414
recursive-include py *.pyi

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ theme:
2424
features:
2525
- content.code.annotate
2626
- content.code.copy
27+
- navigation.indexes
2728
- navigation.instant
2829
- navigation.tabs
2930
- navigation.top
@@ -105,10 +106,10 @@ plugins:
105106
import:
106107
# See https://mkdocstrings.github.io/python/usage/#import for details
107108
- https://docs.python.org/3/objects.inv
109+
- https://frequenz-floss.github.io/frequenz-api-common/v0.3/objects.inv
108110
- https://grpc.github.io/grpc/python/objects.inv
109111
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
110112
- search
111-
- section-index
112113

113114
# Preview controls
114115
watch:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License: MIT
2+
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
3+
4+
"""Frequenz gRPC API to propagate dispatches to microgrids."""

0 commit comments

Comments
 (0)