Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas committed May 11, 2024
1 parent e34c497 commit 5ee9fb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,6 @@ mediafiles/

# pyright config for nvim-lspconfig
pyrightconfig.json

# mise
.mise*.toml
5 changes: 0 additions & 5 deletions .mise.toml

This file was deleted.

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build-backend = "hatchling.build"
requires = ["hatchling"]

[project]
authors = [{ name = "Josh Thomas", email = "[email protected]" }]
authors = [{name = "Josh Thomas", email = "[email protected]"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Django",
Expand All @@ -19,13 +19,13 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: CPython"
]
dependencies = ["django>=4.2"]
description = "A custom Django field for storing and securely accessing a 1Password vault item."
dynamic = ["version"]
keywords = []
license = { file = "LICENSE" }
license = {file = "LICENSE"}
name = "django-opfield"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -48,7 +48,7 @@ dev = [
"pytest-django",
"pytest-randomly",
"pytest-reverse",
"pytest-xdist",
"pytest-xdist"
]
docs = [
"cogapp",
Expand All @@ -57,7 +57,7 @@ docs = [
"sphinx",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinx-inline-tabs",
"sphinx-inline-tabs"
]
lint = ["pre-commit"]

Expand All @@ -70,7 +70,7 @@ Source = "https://github.com/westerveltco/django-opfield"
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "0.1.0"
push = false # set to false for CI
push = false # set to false for CI
tag = false
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"

Expand All @@ -89,7 +89,7 @@ exclude_lines = [
"if not DEBUG:",
"if settings.DEBUG:",
"if TYPE_CHECKING:",
'def __str__\(self\)\s?\-?\>?\s?\w*\:',
'def __str__\(self\)\s?\-?\>?\s?\w*\:'
]
fail_under = 75

Expand Down Expand Up @@ -159,7 +159,7 @@ exclude = [
"dist",
"migrations",
"node_modules",
"venv",
"venv"
]
extend-include = ["*.pyi?"]
indent-width = 4
Expand All @@ -181,13 +181,13 @@ quote-style = "double"
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
ignore = ["E501", "E741"] # temporary
ignore = ["E501", "E741"] # temporary
select = [
"B", # flake8-bugbear
"E", # Pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"UP" # pyupgrade
]
unfixable = []

Expand Down

0 comments on commit 5ee9fb7

Please sign in to comment.