Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools update #1358

Merged
merged 46 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b375e1e
Draft tidy of workflows
eddiebergman Dec 26, 2021
5ddf49a
Fix: mypy should not ignore missing imports
eddiebergman Jan 2, 2022
1509652
Added pydocstyle to checkers
eddiebergman Jan 2, 2022
1fee8b5
Added check and format make options
eddiebergman Jan 2, 2022
f8a5d50
Fix: mutiple entries in same line setup.py
eddiebergman Jan 2, 2022
a23c6fd
Change: black line length to 88
eddiebergman Jan 2, 2022
a2371cd
Fix: make check to only perform checks
eddiebergman Jan 2, 2022
4b7587d
Update: Flake8 ignores style (handled by black/isort)
eddiebergman Jan 2, 2022
afe98f0
Add: pydocstyle, disabled in pre-commit
eddiebergman Jan 2, 2022
a509517
Add: Makefile `make pre-commit`
eddiebergman Jan 2, 2022
b8edf97
Fix: Ignores for mypy on untyped modules
eddiebergman Jan 2, 2022
c072fe8
Limit scope of pre-commit steps
eddiebergman Jan 2, 2022
9425ecd
Fix: flake8 no longer concerned about line length
eddiebergman Jan 2, 2022
c6a27ab
Add: Flake8 to `make check`
eddiebergman Jan 2, 2022
b7d5752
Fix: reduce scope of black and isort
eddiebergman Jan 2, 2022
68d5e63
Fix: Pydocstyle now uses numpy convention
eddiebergman Jan 2, 2022
9a570b2
Fix: workaround for test imports of `automl_common`
eddiebergman Jan 2, 2022
88924e0
Fix: `mypy` ignores `automl_common` now
eddiebergman Jan 2, 2022
a70867d
Fix: Limit scope of `black` and `isort` formatting
eddiebergman Jan 2, 2022
5061826
Fix: pre-commit performs no file changes now
eddiebergman Jan 2, 2022
226b494
Add: `make pre-commit` to `make help`
eddiebergman Jan 3, 2022
0a434e2
Fix: `make help` docstring for `make pre-commit`
eddiebergman Jan 3, 2022
143d819
Fix: isort update sections autosklearn, types
eddiebergman Jan 4, 2022
9329ab0
Fix: warnings by flake8 for line length
eddiebergman Jan 4, 2022
88ee617
Fix: Types section for isort
eddiebergman Jan 4, 2022
e3afa70
Fix: reenable `flake8` formatting checking
eddiebergman Jan 4, 2022
8f8f348
Update: flake8 to use black's line length of 88
eddiebergman Jan 4, 2022
71f7032
add: ignore D205 pydocstyle
eddiebergman Jan 10, 2022
f409a4b
Fix: Import order for futures
eddiebergman Jan 10, 2022
2f9e71c
Merge branch 'development' into tool_update
eddiebergman Jan 10, 2022
206059d
Fix: flake8 ignore E203
eddiebergman Jan 10, 2022
d989b5a
Fix: Formatting and fixed long lines
eddiebergman Jan 10, 2022
174ede2
Del: black/isort checker, checked with pre-commit
eddiebergman Jan 10, 2022
dcf0587
Fix: test dummy prediction error msg
eddiebergman Jan 10, 2022
60da9d6
Add: `coverage` to `pyproject.yaml`
eddiebergman Jan 10, 2022
fed8668
Add: coverage ignore for `if TYPE_CHECKING`
eddiebergman Jan 11, 2022
f26d574
Fix: missing coma
eddiebergman Jan 11, 2022
45a6c7b
Fix: `toml` dependency for pydoctyle in pre-commit
eddiebergman Jan 11, 2022
9ae6879
Merge: dev
eddiebergman Jan 14, 2022
f9378d3
Fix: isort src path
eddiebergman Jan 21, 2022
bb7eaae
Add: `make test`
eddiebergman Jan 21, 2022
b9de92d
Fix: Add name of module to check coverage of
eddiebergman Jan 21, 2022
a4ec68f
Merge branch 'development' into tool_update
eddiebergman Feb 3, 2022
760145c
Maint: isort and black most recent dev
eddiebergman Feb 3, 2022
8e5abe9
Fix: import typo
eddiebergman Feb 3, 2022
b16d154
Change: format now performs individually on each directory
eddiebergman Feb 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 26 additions & 22 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,46 @@
#see https://github.com/codecov/support/wiki/Codecov-Yaml
codecov:
notify:
require_ci_to_pass: yes
require_ci_to_pass: yes

coverage:
precision: 2 # 2 = xx.xx%, 0 = xx%
round: nearest # how coverage is rounded: down/up/nearest
range: 10...90 # custom range of coverage colors from red -> yellow -> green

# 2 = xx.xx%, 0 = xx%
precision: 2

# https://docs.codecov.com/docs/commit-status
status:
# https://codecov.readme.io/v1.0/docs/commit-status

# We want our total main project to always remain above 87% coverage, a
# drop of 0.20% is allowed. It should fail if coverage couldn't be uploaded
# of the CI fails otherwise
project:
default:
against: auto
target: 70% # specify the target coverage for each commit status
threshold: 50% # allow this little decrease on project
# https://github.com/codecov/support/wiki/Filtering-Branches
# branches: master
target: 87%
threshold: 0.20%
if_not_found: failure
if_ci_failed: error
# https://github.com/codecov/support/wiki/Patch-Status

# The code changed by a PR should have 90% coverage. This is different from the
# overall number shown above.
# This encourages small PR's as they are easier to test.
patch:
default:
against: auto
target: 30% # specify the target "X%" coverage to hit
threshold: 50% # allow this much decrease on patch
changes: false
target: 90%
if_not_found: failure
if_ci_failed: error

# We upload additional information on branching with pytest-cov `--cov-branch`
# This information can be used by codecov.com to increase analysis of code
parsers:
gcov:
branch_detection:
conditional: true
loop: true
method: true
macro: false
method: false
javascript:
enable_partials: false


comment:
layout: header, diff
layout: diff, reach
behavior: default
require_changes: false
behavior: default # update if exists else create new
branches: *
11 changes: 8 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[flake8]
max-line-length = 100
show-source = True
application-import-names = autosklearn
exclude =
max-line-length = 88
extend-exclude =
venv
.venv
build
extend-ignore =
# No whitespace before ':' in [x : y]
E203
# No lambdas — too strict
E731
Loading