Skip to content

Commit

Permalink
update linters
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Sep 15, 2024
1 parent 92964f6 commit 4468fed
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 148 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
uses: 20c/workflows/poetry@v1
- name: Run linters
run: |
poetry run isort src/
poetry run black --check src/
poetry run pre-commit run --all-files
test:
Expand Down
28 changes: 4 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,20 @@ exclude: |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.11
rev: v0.6.5
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
args: ["--select", "I", "--fix"]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: system
name: isort
entry: poetry run isort .
language: system
pass_filenames: false
- repo: local
hooks:
- id: pyupgrade
Expand All @@ -33,17 +27,3 @@ repos:
language: python
types: [python]
pass_filenames: true
- repo: local
hooks:
- id: system
name: Black
entry: poetry run black .
language: system
pass_filenames: false
- repo: local
hooks:
- id: system
name: flake8
entry: poetry run flake8 .
language: system
pass_filenames: false
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,4 @@
- cascade delete for relational tables
- fixed foreign key related names
### Removed
- poc list tests
- poc list tests
2 changes: 1 addition & 1 deletion Ctl/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.0
3.4.0
2 changes: 1 addition & 1 deletion Ctl/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ctl:
type: version
permissions:
- namespace: "ctl"
permission: "r"
permission: "r"
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
Django models for PeeringDB

See the docs at http://peeringdb.github.io/django-peeringdb/

1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ Only sync these tables
python manage.py pdb_sync

Will sync the full peeringdb database to your models, any subsequent call will only sync records that have changed.

1 change: 0 additions & 1 deletion docs/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ peeringdb sync
```

## Common problems

1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ pages:
- Home: 'index.md'

markdown_extensions: [abbr,def_list,footnotes,tables,admonition,nl2br,toc]

111 changes: 1 addition & 110 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ pytest-cov = "*"
tox = ">=3.24"

# linting
black = ">=20"
isort = ">=5.7"
flake8 = ">=3.8"
mypy = ">=0.950"
pre-commit = ">=2.13"
pyupgrade = ">=2.19"
Expand All @@ -71,4 +68,3 @@ build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
multi_line_output = 3

1 change: 0 additions & 1 deletion src/django_peeringdb/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class MultipleChoiceField(models.CharField):

"""
Field that can take a set of string values
and store them in a charfield using a delimiter
Expand Down

0 comments on commit 4468fed

Please sign in to comment.