-
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.
Merge pull request #10 from dapper91/dev
- code reformatted - pipenv substituted by poetry - mypy checker added - python 3.10, 3.11 support added - dev dependencies updated
- Loading branch information
Showing
15 changed files
with
244 additions
and
244 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,4 +1,4 @@ | ||
[flake8] | ||
max-line-length = 130 | ||
max-line-length = 120 | ||
per-file-ignores = | ||
crontools/*__init__.py: F401 |
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 |
---|---|---|
|
@@ -130,4 +130,4 @@ dmypy.json | |
|
||
.idea/ | ||
|
||
Pipfile.lock | ||
poetry.lock |
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,52 +1,74 @@ | ||
default_stages: | ||
- commit | ||
- merge-commit | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-docstring-first | ||
stages: | ||
- commit | ||
- push | ||
- id: check-merge-conflict | ||
stages: | ||
- push | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: trailing-whitespace | ||
stages: | ||
- commit | ||
- push | ||
- id: end-of-file-fixer | ||
stages: | ||
- commit | ||
- push | ||
- id: mixed-line-ending | ||
name: fix line ending | ||
stages: | ||
- commit | ||
- push | ||
args: | ||
- --fix=lf | ||
- id: no-commit-to-branch | ||
- id: mixed-line-ending | ||
name: check line ending | ||
stages: | ||
- merge-commit | ||
args: | ||
- --fix=no | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.4.0 | ||
hooks: | ||
- id: add-trailing-comma | ||
stages: | ||
- commit | ||
- repo: https://github.com/pre-commit/mirrors-autopep8 | ||
rev: v1.5.5 | ||
rev: v2.0.1 | ||
hooks: | ||
- id: autopep8 | ||
stages: | ||
- commit | ||
- push | ||
args: | ||
- --max-line-length=130 | ||
- --diff | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.1.0 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: add-trailing-comma | ||
- id: flake8 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
hooks: | ||
- id: isort | ||
name: fix import order | ||
stages: | ||
- commit | ||
- push | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.0 | ||
args: | ||
- --line-length=120 | ||
- --multi-line=9 | ||
- --project=crontools | ||
- id: isort | ||
name: check import order | ||
stages: | ||
- merge-commit | ||
args: | ||
- --check-only | ||
- --line-length=120 | ||
- --multi-line=9 | ||
- --project=crontools | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.0.1 | ||
hooks: | ||
- id: flake8 | ||
- id: mypy | ||
stages: | ||
- commit | ||
- push | ||
name: mypy | ||
pass_filenames: false | ||
args: ["--package", "crontools"] | ||
additional_dependencies: ["types-tzlocal"] |
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.