Skip to content

Commit

Permalink
ci: replace google addlicense with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jul 6, 2023
1 parent 01267d9 commit ad1ce20
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/license.yml

This file was deleted.

19 changes: 19 additions & 0 deletions popmon/version.py
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# Copyright (c) 2023 ING Analytics Wholesale Banking
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

version = "1.4.4"
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ popmon_run = "popmon.pipeline.amazing_pipeline:run"
target-version = "py37"
line-length = 120
namespace-packages = ["popmon"]
select = ["ALL"]
select = ["ALL", "CPY001"]
ignore = [
# COM812 is incompatible with COM819
"COM",
Expand Down Expand Up @@ -145,6 +145,8 @@ ignore = [
"PT011",
# Too many statements
"PLR0915",
# Copyright
"CPY001",
]

# Sphinx config
Expand All @@ -157,6 +159,9 @@ ignore = [

# implicit namespaces
"INP001",

# Copyright
"CPY001",
]

"popmon/config.py" = [
Expand All @@ -177,8 +182,14 @@ ignore = [

# Found useless expression. Either assign it to a variable or remove it.
"B018",

# Copyright
"CPY001",
]

[tool.ruff.flake8-copyright]
notice-rgx = """(?mis)Copyright \\(c\\) 2023 ING Analytics Wholesale Banking.+"""

[tool.pytest.ini_options]
markers = ["spark"]

Expand Down

0 comments on commit ad1ce20

Please sign in to comment.