Skip to content

Commit

Permalink
Dont check lint for Contrib in Core
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed Nov 4, 2020
1 parent 017d0a9 commit f61071d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tox-environment: [ "docker-tests", "lint" ]
tox-environment: [ "docker-tests"]
name: ${{ matrix.tox-environment }}
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ lib64
__pycache__
venv*/
.venv*/
opentelemetry-python-contrib/

# Installer logs
pip-log.txt
Expand Down
3 changes: 3 additions & 0 deletions eachdist.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# These will be sorted first in that order.
# All packages that are depended upon by others should be listed here.
[DEFAULT]
ignore=
opentelemetry-python-contrib

sortfirst=
opentelemetry-api
opentelemetry-sdk
Expand Down
12 changes: 12 additions & 0 deletions scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,18 @@ def keyfunc(path):
return float("inf")

targets.sort(key=keyfunc)
if "ignore" in mcfg:
ignore = getlistcfg(mcfg["ignore"])

def filter_func(path):
path = path.relative_to(rootpath)
for pattern in ignore:
if path.match(pattern):
return False
return True

filtered = filter(filter_func, targets)
targets = list(filtered)

subglobs = getlistcfg(mcfg.get("subglob", ""))
if subglobs:
Expand Down

0 comments on commit f61071d

Please sign in to comment.