forked from frappe/hrms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix flake8, linter spec, add codecov and sider.yml
- Loading branch information
1 parent
6f3ef1b
commit 3fd188b
Showing
6 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ ignore = | |
E101, # ensured by use of black | ||
|
||
max-line-length = 200 | ||
exclude=.github/helper/semgrep_rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
python-version: '3.10' | ||
|
||
- name: Install and Run Pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Download Semgrep rules | ||
run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules | ||
|
||
- uses: returntocorp/semgrep-action@v1 | ||
env: | ||
SEMGREP_TIMEOUT: 120 | ||
with: | ||
config: >- | ||
r/python.lang.correctness | ||
./frappe-semgrep-rules/rules | ||
- name: Download semgrep | ||
run: pip install semgrep==0.97.0 | ||
|
||
- name: Run Semgrep rules | ||
run: semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0.5% | ||
|
||
patch: | ||
default: | ||
target: 85% | ||
threshold: 0% | ||
base: auto | ||
branches: | ||
- develop | ||
if_ci_failed: ignore | ||
only_pulls: true | ||
|
||
comment: | ||
layout: "diff, files" | ||
require_changes: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
[project] | ||
name = "hrms" | ||
authors = [ | ||
{ name = "Frappe Technologies Pvt Ltd", email = "[email protected]"} | ||
] | ||
description = "Open Source HR & Payroll Software" | ||
requires-python = ">=3.10" | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.4,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.bench.dev-dependencies] | ||
hypothesis = "~=6.31.0" | ||
|
||
[tool.black] | ||
line-length = 99 | ||
|
||
|
@@ -8,4 +25,4 @@ include_trailing_comma = true | |
force_grid_wrap = 0 | ||
use_parentheses = true | ||
ensure_newline_before_comments = true | ||
indent = "\t" | ||
indent = "\t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
linter: | ||
flake8: | ||
config: .flake8 |