Skip to content

Commit c25462a

Browse files
Merge branch 'main' into confluent-kafka-produce-purge
2 parents e030f1e + 7f7c0f3 commit c25462a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Diff for: .pylintrc

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ suggestion-mode=yes
4545
# active Python interpreter and may run arbitrary code.
4646
unsafe-load-any-extension=no
4747

48+
# Run python dependant checks considering the baseline version
49+
py-version=3.8
50+
4851

4952
[MESSAGES CONTROL]
5053

Diff for: CONTRIBUTING.md

+21
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,24 @@ Below is a checklist of things to be mindful of when implementing a new instrume
275275
## Expectations from contributors
276276

277277
OpenTelemetry is an open source community, and as such, greatly encourages contributions from anyone interested in the project. With that being said, there is a certain level of expectation from contributors even after a pull request is merged, specifically pertaining to instrumentations. The OpenTelemetry Python community expects contributors to maintain a level of support and interest in the instrumentations they contribute. This is to ensure that the instrumentation does not become stale and still functions the way the original contributor intended. Some instrumentations also pertain to libraries that the current members of the community are not so familiar with, so it is necessary to rely on the expertise of the original contributing parties.
278+
279+
## Updating supported Python versions
280+
281+
### Bumping the Python baseline
282+
283+
When updating the minimum supported Python version remember to:
284+
285+
- Remove the version in `pyproject.toml` trove classifiers
286+
- Remove the version from `tox.ini`
287+
- Search for `sys.version_info` usage and remove code for unsupported versions
288+
- Bump `py-version` in `.pylintrc` for Python version dependent checks
289+
290+
### Adding support for a new Python release
291+
292+
When adding support for a new Python release remember to:
293+
294+
- Add the version in `tox.ini`
295+
- Add the version in `pyproject.toml` trove classifiers
296+
- Update github workflows accordingly; lint and benchmarks use the latest supported version
297+
- Update `.pre-commit-config.yaml`
298+
- Update tox examples in the documentation

0 commit comments

Comments
 (0)