Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
chore: fix gh license wf (amundsen-io#1454)
Browse files Browse the repository at this point in the history
* chore: fix gh license wf

Signed-off-by: feng-tao <[email protected]>

* chore: use go 1.16

Signed-off-by: feng-tao <[email protected]>

* fix license issue

Signed-off-by: feng-tao <[email protected]>

* chore: fix FE

Signed-off-by: feng-tao <[email protected]>

* chore: fix js

Signed-off-by: feng-tao <[email protected]>

* fix

Signed-off-by: feng-tao <[email protected]>
  • Loading branch information
feng-tao authored Aug 25, 2021
1 parent 3ee9608 commit de01192
Show file tree
Hide file tree
Showing 28 changed files with 77 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ name: license
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Golang
uses: actions/setup-go@v2
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Install addlicense
run: |
export PATH=${PATH}:`go env GOPATH`/bin
Expand Down
2 changes: 2 additions & 0 deletions common/amundsen_common/entity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions common/amundsen_common/models/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions common/amundsen_common/models/badge.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import attr

from marshmallow3_annotations.ext.attrs import AttrsSchema
Expand Down
3 changes: 3 additions & 0 deletions common/amundsen_common/models/generation_code.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

from typing import Optional

import attr
Expand Down
3 changes: 3 additions & 0 deletions common/amundsen_common/models/tag.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import attr

from marshmallow3_annotations.ext.attrs import AttrsSchema
Expand Down
2 changes: 2 additions & 0 deletions common/tests/unit/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions common/tests/unit/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions databuilder/databuilder/extractor/generic_usage_extractor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

"""
The Generic Usage Extractor allows you to populate the "Frequent Users" and "Popular Tables" features within
Amundsen with the help of the TableColumnUsage class. Because this is a generic usage extractor, you need to create
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import json
from typing import (
Any, Dict, Tuple,
Expand Down
2 changes: 2 additions & 0 deletions databuilder/databuilder/models/feature/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions databuilder/databuilder/models/query/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

from typing import Iterator

from databuilder.models.graph_serializable import GraphSerializable
Expand Down
2 changes: 2 additions & 0 deletions databuilder/databuilder/types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions databuilder/databuilder/types/atlas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import json
import logging
import re
Expand Down
2 changes: 2 additions & 0 deletions databuilder/databuilder/types/atlas/schema/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions databuilder/databuilder/types/atlas/types_def.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import pkg_resources


Expand Down
3 changes: 3 additions & 0 deletions databuilder/databuilder/utils/atlas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

class AtlasRelationshipTypes:
group_dashboard = 'DashboardGroup__Dashboard'
resource_owner = 'DataSet_Users_Owner'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import os

from pyhocon import ConfigFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import unittest
from typing import Any

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import unittest
from typing import Any

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import unittest
from typing import Any

Expand Down
2 changes: 2 additions & 0 deletions databuilder/tests/unit/models/query/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
4 changes: 2 additions & 2 deletions frontend/amundsen_application/static/.betterer.results
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ exports[`eslint`] = {
[136, 44, 13, "\'selectOptions\' is defined but never used.", "1076977309"],
[175, 8, 21, "Must use destructuring props assignment", "2890513821"],
[179, 6, 21, "Must use destructuring props assignment", "2890513821"],
[226, 8, 118, "Visible, non-interactive elements with click handlers must have at least one keyboard listener.", "3772713652"],
[226, 8, 118, "Static HTML elements with event handlers require a role.", "3772713652"],
[226, 8, 118, "Visible, non-interactive elements with click handlers must have at least one keyboard listener.", "3772713652"],
[245, 12, 15, "Must use destructuring props assignment", "4223491724"],
[250, 12, 18, "Must use destructuring props assignment", "1044970797"],
[250, 57, 15, "Must use destructuring props assignment", "4223491724"],
Expand Down Expand Up @@ -659,8 +659,8 @@ exports[`eslint`] = {
],
"js/features/Feedback/index.tsx:1829853539": [
[45, 15, 18, "Must use destructuring props assignment", "4076523716"],
[51, 29, 17, "Must use destructuring state assignment", "4230747098"],
[51, 29, 10, "Use callback in setState when referencing the previous state.", "4014904506"],
[51, 29, 17, "Must use destructuring state assignment", "4230747098"],
[54, 40, 1, "\'e\' is defined but never used.", "177600"],
[72, 8, 313, "Missing an explicit type attribute for button", "4022438992"],
[74, 12, 17, "Must use destructuring state assignment", "4230747098"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Contributors to the Amundsen project.
// SPDX-License-Identifier: Apache-2.0

import * as React from 'react';
import { Link } from 'react-router-dom';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Contributors to the Amundsen project.
// SPDX-License-Identifier: Apache-2.0

import * as React from 'react';

import './styles.scss';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Copyright Contributors to the Amundsen project.
// SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions metadata/metadata_service/api/feature.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0

import json
import logging
from http import HTTPStatus
Expand Down

0 comments on commit de01192

Please sign in to comment.