Skip to content

Commit

Permalink
Thin out some unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
dirmeier committed Jul 20, 2024
1 parent 63081e6 commit 07b1ae6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 75 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,3 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0

test:
runs-on: ubuntu-latest
needs:
- precommit
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox
- name: Test everything
run: |
tox
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/pycqa/bandit
rev: 1.7.1
hooks:
- id: bandit
language: python
language_version: python3
types: [python]
args: ["-c", "pyproject.toml"]
additional_dependencies: ["toml"]
files: "(ddo|experiments)"

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910-1
hooks:
Expand Down
12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "dynamic-versioning"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[project]
name = "ddo"
Expand All @@ -17,12 +17,14 @@ classifiers = [
requires-python = ">=3.9"
dynamic = ["version", "dependencies"]

[tool.setuptools]
[tool.hatch.build.targets.wheel]
packages = ["ddo"]

[tool.setuptools.dynamic]
version = {attr = "ddo.__init__.__version__"}
dependencies = {file = ["requirements.txt"]}
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]

[tool.hatch.version]
path = "ddo/__init__.py"

[tool.bandit]
skips = ["B101"]
Expand Down
26 changes: 0 additions & 26 deletions tox.ini

This file was deleted.

0 comments on commit 07b1ae6

Please sign in to comment.