precommit: end-of-file-fixer (#929)

* precommit: end-of-file-fixer

* exclude .gitignore

* apply

---------

Co-authored-by: Shaokun <shaokunzhang529@gmail.com>
This commit is contained in:
Jirka Borovec 2023-02-28 17:27:14 +01:00 committed by GitHub
parent a3e368d2ca
commit 2ff1035733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
123 changed files with 122 additions and 125 deletions

1
.gitignore vendored
View File

@ -159,4 +159,3 @@ automl.pkl
test/nlp/testtmp.py
test/nlp/testtmpfl.py

View File

@ -24,7 +24,9 @@ repos:
- id: check-toml
- id: check-json
- id: check-byte-order-marker
exclude: .gitignore
- id: check-merge-conflict
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- id: no-commit-to-branch

View File

@ -346,7 +346,10 @@ class AutoMLState:
@staticmethod
def _compute_with_config_base(
config_w_resource: dict, state: AutoMLState, estimator: str, is_report: bool = True
config_w_resource: dict,
state: AutoMLState,
estimator: str,
is_report: bool = True,
) -> dict:
if "FLAML_sample_size" in config_w_resource:
sample_size = int(config_w_resource["FLAML_sample_size"])

View File

@ -23,5 +23,3 @@ Our findings on troubleshooting fine-tuning the Electra and RoBERTa model for th
booktitle={ACL-IJCNLP},
}
```

0
notebook/automl_time_series_forecast.ipynb Executable file → Normal file
View File

View File

@ -2,4 +2,3 @@
addopts = -m "not conda"
markers =
conda: test related to conda forge distribution

View File

@ -131,4 +131,3 @@ module.exports = {
],
],
};

View File

@ -54,6 +54,3 @@
]
}
}