-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruff as our formatter/linter (#326)
* switch to ruff for formatter-linter * remove reference to black/flake8 * remove bdist_wheel universal * skip cython version * add click to env * Jan's comment * [skipci] changelog
- Loading branch information
1 parent
4604b24
commit 4d3bbd8
Showing
16 changed files
with
90 additions
and
125 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 |
---|---|---|
@@ -1,46 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black-conda | ||
additional_dependencies: [flake8-docstrings, flake8-rst-docstrings] | ||
args: | ||
- --safe | ||
- --target-version=py39 | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8-conda | ||
additional_dependencies: [ | ||
-c, | ||
conda-forge, | ||
flake8-bugbear=21.4.3, | ||
flake8-builtins=1.5.3, | ||
flake8-comprehensions=3.5.0, | ||
flake8-docstrings=1.6.0, | ||
flake8-print=4.0.0, | ||
pep8-naming=0.11.1, | ||
python<3.12, | ||
] | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort-conda | ||
additional_dependencies: [toml] | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-mypy | ||
rev: "1.5.1" | ||
hooks: | ||
- id: mypy-conda | ||
additional_dependencies: | ||
- python=3.9 | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-pyupgrade | ||
rev: 3.15.0 | ||
hooks: | ||
- id: pyupgrade-conda | ||
args: [--py39-plus] | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-cython-lint | ||
rev: 0.15.0 | ||
hooks: | ||
- id: cython-lint-conda | ||
args: [--no-pycodestyle] | ||
- id: double-quote-cython-strings-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-ruff | ||
rev: 0.1.3 | ||
hooks: | ||
- id: ruff-conda | ||
- id: ruff-format-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-mypy | ||
rev: "1.5.1" | ||
hooks: | ||
- id: mypy-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-cython-lint | ||
rev: 0.15.0 | ||
hooks: | ||
- id: cython-lint-conda | ||
args: [--no-pycodestyle] | ||
- id: double-quote-cython-strings-conda |
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
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
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
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