Skip to content

Commit

Permalink
build: copier auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Mar 19, 2024
1 parent 9011b07 commit e63b7a0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Answer file maintained by Copier for: https://github.com/KyleKing/calcipy_template
# DO NOT MODIFY THIS FILE. Edit by re-running copier and changing responses to the questions
# Check into version control.
_commit: 1.9.7
_commit: 1.9.10
_src_path: gh:KyleKing/calcipy_template
author_email: dev.act.kyle@gmail.com
author_name: Kyle King
Expand Down
11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ repos:
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies: ["mdformat-mkdocs[recommended]>=1.1.1"]
additional_dependencies:
- "mdformat-mkdocs[recommended]>=2.0.4"
- "mdformat-wikilink"
args: [--wrap=no]
exclude: _.+\.md|CHANGELOG\.md|CODE_TAG_SUMMARY\.md
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand All @@ -76,13 +78,6 @@ repos:
rev: v0.23.1
hooks:
- id: toml-sort-fix
args:
[
--in-place,
--all,
--trailing-comma-inline-array,
--sort-first=python,
]
exclude: poetry\.lock
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
Expand Down
16 changes: 9 additions & 7 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Docs: https://github.com/charliermarsh/ruff
# Tip: poetry run python -m ruff --explain RUF100

line-length = 120
target-version = 'py39'

[lint]
external = [
'CAC001', # <func> is too complex (8 > 7)
'ECE001', # Expression is too complex (8 > 7)
Expand Down Expand Up @@ -33,18 +37,16 @@ ignore = [
'TID252', # Relative imports from parent modules are banned
'TRY003', # Avoid specifying long messages outside the exception class
]
line-length = 120
preview = true
select = ['ALL']
target-version = 'py39'
unfixable = [
'ERA001', # Commented out code
]

[flake8-quotes]
[lint.flake8-quotes]
inline-quotes = 'single'

[flake8-tidy-imports.banned-api]
[lint.flake8-tidy-imports.banned-api]
'invoke.collection.Collection'.msg = 'Use calcipy.cli.Collection instead.'
'invoke.tasks.task'.msg = 'Use calcipy.cli.task instead.'
'typing.Callable'.msg = 'Use beartype.typing.* instead.'
Expand All @@ -54,10 +56,10 @@ inline-quotes = 'single'
'typing.Protocol'.msg = 'Use beartype.typing.* instead.'
'typing.TypeVar'.msg = 'Use beartype.typing.* instead.'

[isort]
[lint.isort]
known-first-party = ['calcipy']

[per-file-ignores]
[lint.per-file-ignores]
'./calcipy/../*.py' = [
'INP001', # File `/<>.py` is part of an implicit namespace package. Add an `__init__.py`.
]
Expand All @@ -83,5 +85,5 @@ known-first-party = ['calcipy']
'S101', # Use of `assert` detected
]

[pylint]
[lint.pylint]
max-args = 6
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,9 @@ calcipy-types = "calcipy.scripts:start_types"
[tool.pyright]
include = ["calcipy"]
pythonVersion = "3.9"

[tool.tomlsort]
all = true
in_place = true
sort_first = ["python"]
trailing_comma_inline_array = true

0 comments on commit e63b7a0

Please sign in to comment.