forked from jcollie/octodns-netbox-dns
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86789a1
commit 74c447b
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# getting started | ||
|
||
## with asdf | ||
|
||
### tools needed | ||
|
||
- python 3.11 | ||
- [hatch](https://hatch.pypa.io/) | ||
- [asdf](https://asdf-vm.com/guide/getting-started.html) | ||
|
||
### setup | ||
|
||
1. install [asdf](https://asdf-vm.com/guide/getting-started.html) | ||
2. run `asdf install` in this directory to install all needed tools | ||
3. run `just setup` to install the pre-commit hooks etc. | ||
|
||
### pre-commit | ||
|
||
1. run `just check` to lint the files and auto-format them. | ||
you can optionally run `just format` and `just lint` as a single action. | ||
2. fix the issues which ruff reports | ||
3. run `just build` to check if it builds correctly | ||
4. commit changes | ||
|
||
## manual | ||
|
||
### tools needed | ||
|
||
- python 3.11 | ||
- [hatch](https://hatch.pypa.io/) | ||
|
||
### setup | ||
|
||
1. install [just](https://github.com/casey/just) | ||
2. run `just setup` to install the pre-commit hooks etc. | ||
|
||
### pre-commit | ||
|
||
1. run `hatch run lint:fmt` to lint the files and auto-format them. | ||
2. fix the issues which ruff reports | ||
3. run `hatch build --clean` to check if it builds correctly | ||
4. commit changes |