Skip to content

Commit

Permalink
Remove unused tools (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-rarus authored May 21, 2023
1 parent a16bb56 commit 0f0f0e1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 52 deletions.
6 changes: 0 additions & 6 deletions .github/hooks/.pre-commit-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
files: ^src/

- repo: local
hooks:
- id: codespell
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
run: |
poetry run mypy --incremental --show-error-codes --pretty src
- name: Vulture
run: |
poetry run vulture
- name: Tests
run: |
poetry run coverage run -m pytest src --cov-config=.coveragerc --junit-xml=junit/test-results.xml --cov-report=html --cov-report=xml
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ format: isort black
mypy:
poetry run mypy --incremental --install-types --show-error-codes --pretty src

vulture:
poetry run vulture

pre_commit:
poetry run pre-commit run -a -c .github/hooks/.pre-commit-config.yml

Expand All @@ -41,7 +38,7 @@ test_cov:
compile_env:
poetry lock --no-update

build: isort black pre_commit flake8 mypy vulture test
build: isort black pre_commit flake8 mypy test

# Misc
jupyter:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ When developing a project there's a need to automate some tedious stuff that hel
- [flake8](https://github.com/PyCQA/flake8)
- [isort](https://github.com/PyCQA/isort)
- [mypy](https://github.com/python/mypy)
- [(vulture)](https://github.com/jendrikseipp/vulture)
- [poetry](https://github.com/python-poetry/poetry)

## [Makefile](Makefile)
Expand All @@ -44,7 +43,7 @@ To start your work, you need to set up your local environment and hooks.
make install_dev
```

You gonna put your CLI here later. It already contains calls to build tools and checks. Use `build` to run them all (`isort`, `black`, `pre_commit`, `flake8`, `mypy`, `vulture`, `test`).
You gonna put your CLI here later. It already contains calls to build tools and checks. Use `build` to run them all (`isort`, `black`, `pre_commit`, `flake8`, `mypy`, `test`).

```sh
make build
Expand Down
29 changes: 1 addition & 28 deletions poetry.lock

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

8 changes: 0 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ pre-commit = "^3.2.1"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pyupgrade = "^3.4.0"
vulture = "^2.7"
yesqa = "^1.4.0"

[tool.flake8]
Expand Down Expand Up @@ -66,13 +65,6 @@ exclude = '''
)/
'''

[tool.vulture]
make_whitelist = true
min_confidence = 80
paths = ["src"]
sort_by_size = true
verbose = false

[tool.codespell]
ignore-words = ".codespell"

Expand Down

0 comments on commit 0f0f0e1

Please sign in to comment.