File tree 5 files changed +32
-1
lines changed
5 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 11
11
# opentelemetry-python-contrib which is compatible with these Core repo
12
12
# changes.
13
13
CONTRIB_REPO_SHA : 9ce1c26d2732dfbdadbb492fc38c562dcd08ed2e
14
+
14
15
# This is needed because we do not clone the core repo in contrib builds anymore.
15
16
# When running contrib builds as part of core builds, we use actions/checkout@v4 which
16
17
# does not set an environment variable (simply just runs tox), which is different when
19
20
# from within the contrib build.
20
21
CORE_REPO_SHA : ${{ github.sha }}
21
22
23
+ # See #3879 and https://pip.pypa.io/en/stable/cli/pip/#exists-action-option
24
+ PIP_EXISTS_ACTION : w
25
+
22
26
jobs :
23
27
build :
24
28
env :
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/psf/black-pre-commit-mirror
3
+ rev : 24.3.0
4
+ hooks :
5
+ - id : black
6
+ language_version : python3.11
7
+ - repo : https://github.com/pycqa/isort
8
+ rev : 5.12.0
9
+ hooks :
10
+ - id : isort
11
+ - repo : https://github.com/pycqa/flake8
12
+ rev : ' 6.1.0'
13
+ hooks :
14
+ - id : flake8
Original file line number Diff line number Diff line change @@ -61,6 +61,18 @@ An easier way to do so is:
61
61
1 . Run ` .tox/lint/bin/black . `
62
62
2 . Run ` .tox/lint/bin/isort . `
63
63
64
+ Or you can call formatting and linting in one command by [ pre-commit] ( https://pre-commit.com/ ) :
65
+
66
+ ``` console
67
+ $ pre-commit
68
+ ```
69
+
70
+ You can also configure it to run lint tools automatically before committing with:
71
+
72
+ ``` console
73
+ $ pre-commit install
74
+ ```
75
+
64
76
We try to keep the amount of _ public symbols_ in our code minimal. A public symbol is any Python identifier that does not start with an underscore.
65
77
Every public symbol is something that has to be kept in order to maintain backwards compatibility, so we try to have as few as possible.
66
78
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ asgiref==3.7.2
19
19
psutil==5.9.6
20
20
GitPython==3.1.41
21
21
flaky==3.7.0
22
+ pre-commit==3.7.0
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ DISTDIR=dist
16
16
mkdir -p $DISTDIR
17
17
rm -rf ${DISTDIR:? } /*
18
18
19
- for d in opentelemetry-api/ opentelemetry-sdk/ opentelemetry-proto/ opentelemetry-semantic-conventions/ exporter/* / shim/opentelemetry-opentracing-shim / propagator/* / tests/opentelemetry-test-utils/; do
19
+ for d in opentelemetry-api/ opentelemetry-sdk/ opentelemetry-proto/ opentelemetry-semantic-conventions/ exporter/* / shim/* / propagator/* / tests/opentelemetry-test-utils/; do
20
20
(
21
21
echo " building $d "
22
22
cd " $d "
You can’t perform that action at this time.
0 commit comments