-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃敡 MAINTAIN: Improve repo configuration (#112)
- Move config to `setup.cfg` and `pyproject.toml` - Add `Manifest.in`, `tox.ini` - Replace `requirements.txt`/`dev-requirements.txt with `requirements.lock` - Move from yapf to black code formatting - Add more pre-commit hooks - Update pylint version and fix new failures - Drop python 3.6
- Loading branch information
1 parent
a2561a4
commit 2cb2841
Showing
51 changed files
with
3,222 additions
and
2,433 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
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
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ disk_objectstore.egg-info | |
|
||
htmlcov | ||
.coverage | ||
.tox/ |
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,27 +1,74 @@ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: double-quote-string-fixer | ||
|
||
- repo: local | ||
hooks: | ||
- id: yapf | ||
name: yapf | ||
entry: yapf | ||
language: system | ||
types: [python] | ||
args: ["-i"] | ||
exclude: &exclude_files > | ||
(?x)^( | ||
performance-benchmarks/.*/.*\.py | ||
)$ | ||
|
||
# prospector: collection of linters | ||
- id: prospector | ||
language: system | ||
types: [file, python] | ||
name: prospector | ||
description: "This hook runs Prospector: https://github.com/landscapeio/prospector" | ||
entry: prospector | ||
exclude: *exclude_files | ||
ci: | ||
autoupdate_schedule: monthly | ||
autofix_prs: true | ||
|
||
exclude: &exclude_files > | ||
(?x)^( | ||
performance-benchmarks/.*/.*\.py | ||
)$ | ||
|
||
repos: | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v1.17.0 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
|
||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.46" | ||
hooks: | ||
- id: check-manifest | ||
args: [--no-build-isolation] | ||
additional_dependencies: [setuptools>=46.4.0] | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.9 | ||
hooks: | ||
- id: mdformat | ||
additional_dependencies: | ||
- linkify-it-py | ||
- mdformat-gfm | ||
- mdformat-black | ||
files: (?x)^(README\.md|CHANGELOG\.md)$ | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.9.3 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.25.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.7b0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/pylint | ||
rev: v2.10.2 | ||
hooks: | ||
- id: pylint | ||
additional_dependencies: | ||
- sqlalchemy<1.4 | ||
- click==8.0.1 | ||
- memory-profiler==0.58.0 | ||
- profilehooks==1.12.0 | ||
- psutil==5.8.0 | ||
- pytest==6.2.4 | ||
|
||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v0.910 | ||
# hooks: | ||
# - id: mypy | ||
# additional_dependencies: [] |
Oops, something went wrong.
2cb2841
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Benchmark on macos-latest'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.tests/test_benchmark.py::test_loose_write
0.46916064825171605
iter/sec (stddev: 0.3550621606602441
)1.242527638621194
iter/sec (stddev: 0.0794438716760416
)2.65
This comment was automatically generated by workflow using github-action-benchmark.