This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
generated from GrafeasGroup/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run poetry update * Fix poetry dev dependency declarations * Make poetry2setup real dependency instead of using git * Add ruff * Configure black line length * Automatically fix lints * Add missing timezone when getting time * Remove flake8 and isort * Remove flake8 configuration * Update pre-commit hook configuration * Update CI to run ruff instead of flake8
- Loading branch information
1 parent
59fab01
commit a589c98
Showing
23 changed files
with
627 additions
and
980 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v2.2.0 | ||
hooks: | ||
- id: seed-isort-config | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/ambv/black | ||
rev: 22.6.0 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.1 | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.265 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [ | ||
"flake8-annotations==2.9.0", | ||
"flake8-black==0.3.3", | ||
"flake8-docstrings==1.6.0", | ||
#"flake8-isort==4.1.2", # flake8-isort doesn't support flake8 5 yet, uncomment this when it does. | ||
"flake8-variables-names==0.0.5" | ||
] | ||
- id: ruff |
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,51 @@ | ||
select = [ | ||
"E", # pycodestyle (error) | ||
"W", # pycodestyle (warning) | ||
"D", # pydocstyle | ||
"I", # isort | ||
"ANN", # flake8-annotations | ||
"DTZ", # flake8-datetimez | ||
] | ||
ignore = [ | ||
"ANN101", # missing-type-self | ||
"ANN401", # any-type | ||
"D100", # undocumented-public-module | ||
"D101", # undocumented-public-class | ||
"D105", # undocumented-magic-method | ||
"D106", # undocumented-public-nested-class | ||
"D203", # one-blank-line-before-class | ||
"D213", # multi-line-summary-second-line | ||
] | ||
|
||
exclude = [ | ||
"build", | ||
"dist", | ||
] | ||
|
||
line-length = 100 # Same as black | ||
|
||
[per-file-ignores] | ||
"test_*" = [ | ||
"D", # Disable documentation lints for test files | ||
"DTZ", # Disable timezone lints for test files | ||
] | ||
|
||
[isort] | ||
known-third-party = [ | ||
"asyncpraw", | ||
"asyncprawcore", | ||
"blossom_wrapper", | ||
"click", | ||
"dateutil", | ||
"discord", | ||
"discord_slash", | ||
"matplotlib", | ||
"pandas", | ||
"pytest", | ||
"pytz", | ||
"requests", | ||
"seaborn", | ||
"shiv", | ||
"toml", | ||
"yaml" | ||
] |
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
Oops, something went wrong.