Skip to content

Commit

Permalink
chore: move script to src layout and make a package (#117)
Browse files Browse the repository at this point in the history
* chore: move functions and classes out of main.py

* chore: move configuration stuff to separate module

* chore: update configuration tests

* chore: move encoder stuff to separate module

* chore: move formatter stuff to separate module

* chore: move string functions to separate module

* chore: move utility functions to separate module

* chore: move syntax functions to separate module

* chore: make docformatter a package

* test: update test suite for package

* refactor: fix imports to prevent cyclic imports

* chore: update dependencies

* chore: rename main.py to __main__.py

* ci: add workflow to lint code base

* refactor: rename classes and modules

* chore: remove Makefile; not really needed any longer
  • Loading branch information
weibullguy committed Aug 24, 2022
1 parent fef89ad commit 1def3c4
Show file tree
Hide file tree
Showing 23 changed files with 1,839 additions and 1,587 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- master

jobs:
test:
strategy:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/do-lint.yml
@@ -0,0 +1,25 @@
name: Lint
on:
push:
branches:
- "*"
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
name: "Run linters on code base"
steps:
- name: Setup Python for linting
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install tox
run: python -m pip install tox tox-gh-actions
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint code base
run: tox -e style
10 changes: 0 additions & 10 deletions MANIFEST.in

This file was deleted.

39 changes: 0 additions & 39 deletions Makefile

This file was deleted.

0 comments on commit 1def3c4

Please sign in to comment.