Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 Refactor RC #327

Open
wants to merge 174 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 135 commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
4913036
intitial separation
e-lo Apr 10, 2023
247d90f
initial refactor
e-lo Apr 11, 2023
8eb9cc0
Refactor selection, segments, apply
e-lo Apr 13, 2023
6351925
Factored out major parts or RoadwayNetwork to other classes
e-lo Apr 27, 2023
34c0ddb
Merge branch 'develop' into selection-refactor
e-lo Apr 27, 2023
a1ca5c9
debugging
e-lo Apr 29, 2023
5208330
update project card formats
e-lo May 3, 2023
396676b
update selection tests to have answers
e-lo May 8, 2023
4f943b1
selections tests passing
e-lo May 11, 2023
6402ef4
test_properties passs
e-lo May 11, 2023
f0310d1
Passing almost all roadway tests now
e-lo Jun 5, 2023
58d27f8
Format updates, linting
e-lo Jun 14, 2023
80cad3c
Refactor transit selection
e-lo Aug 1, 2023
3ffc565
transit tests working
e-lo Aug 2, 2023
ff21855
refactor transit project application
e-lo Aug 7, 2023
fdfa5b2
Update project cards and API to be consistent with projectcard structure
e-lo Dec 12, 2023
7ef4580
rename to timespans
e-lo Mar 11, 2024
c4048fa
Add roadway network clipping feature
e-lo Mar 27, 2024
b55414b
Fix roadway single node example with incorrect ..referenceID --> ..re…
e-lo Mar 27, 2024
50652d6
Update transit timespan --> timespans per project card v1 spec
e-lo Mar 27, 2024
dbcddb1
Remove LocationReferences / Speed up I/O and allow other serializatio…
e-lo Mar 27, 2024
e70b32a
Update notebooks and tests to use updatated API
e-lo Mar 27, 2024
867753d
Update organization of pydantic and pandera data models
e-lo Mar 27, 2024
9318a06
Improved small-network example
e-lo Apr 16, 2024
aa18ffe
Implement roadway and transit data models.
e-lo Apr 16, 2024
311ae50
Vectorize input reading tasks and minimize overhead.
e-lo Apr 16, 2024
d7a3c51
Update setup scripts/configs
e-lo Apr 16, 2024
30072e0
Add network format conversions.
e-lo Apr 16, 2024
fc52ba8
Define very basic project card models
e-lo Apr 16, 2024
6131994
add clipping functionality for transit and highways
e-lo Apr 16, 2024
166bac7
Draft an overview of v1 release features
e-lo Apr 16, 2024
61748ee
Fix bug in selection dictionary
e-lo Apr 16, 2024
cb1d0d8
bug fixes for transit data models
e-lo Apr 16, 2024
24eac37
remove cruft we aren't using
e-lo Apr 17, 2024
0da4f32
Move roadway and transit networks to ../net
e-lo Apr 17, 2024
b530e20
rename small network single --> small
e-lo Apr 17, 2024
9971f51
update API for scripts
e-lo Apr 17, 2024
d470cc0
WIP: Improve installation with environmnents and pypi publishing
e-lo Apr 17, 2024
92eb4f7
Remove partridge dependency. try to fix setup.py bug
e-lo Apr 17, 2024
a208654
Make sure specified optional columns are added as blanks
e-lo Apr 18, 2024
02a3cea
small renaming
e-lo Apr 18, 2024
1bf40ef
Update test workflow for coverage commenting
e-lo Jun 10, 2024
8a24f96
Update script calls
e-lo Jun 10, 2024
036efc7
Pull out 'scoped', improve performance, fix bugs, add docs
e-lo Jun 10, 2024
bdef653
Fix one-to-many update function
e-lo Jun 11, 2024
2e376ed
Add feed path to feed obj
e-lo Jun 11, 2024
82d2bca
Fix typo in project card
e-lo Jun 11, 2024
c7a60f7
Fix selection type lookups
e-lo Jun 11, 2024
e39ad3e
Update ml_access/egress_point to be bool rather than list of nodes
e-lo Jun 11, 2024
4ab5530
All tests passing; all linters run!
e-lo Jun 13, 2024
aaf0c3d
Fix strange copilot copy/paste; add test for installation/import
e-lo Jun 13, 2024
f003b06
update requirements to install projectcard from github
e-lo Jun 13, 2024
aa003f0
See if specifying version/branch in git requirements will fix.
e-lo Jun 18, 2024
0a1c094
main not master (doh)
e-lo Jun 18, 2024
beef6cf
clean up docs / bump version
e-lo Jun 20, 2024
c705ea3
Fix subnet not grabbing right mode
e-lo Jul 12, 2024
645b421
Update pytest and gitignore
e-lo Jul 12, 2024
0197a39
projectcard can now pull from pypi
e-lo Jul 12, 2024
8f3beef
Fix FK checking
e-lo Jul 16, 2024
6193bf5
Fix pyproject to explictly state package name
e-lo Jul 16, 2024
fa18f1a
Linting!
e-lo Jul 16, 2024
0377428
add framework for adding transit route
e-lo Jul 16, 2024
40e9fc9
add import statement...
e-lo Jul 16, 2024
3d1c1e7
pin Mike for rebuild flag
e-lo Jul 17, 2024
ee41c84
forgot about pyproject.toml...pin that too
e-lo Jul 17, 2024
745cd89
update documentation build for autodoc
e-lo Jul 17, 2024
986d565
bump version
e-lo Jul 17, 2024
bb379b0
lint
e-lo Jul 17, 2024
eae3954
Fix timespan ---> timespans for transit trip selection
e-lo Aug 12, 2024
6445495
Fix default for "access" ---> none
e-lo Aug 12, 2024
f3445cb
add route docs + param for card type
e-lo Aug 12, 2024
48fd539
fix deep copy call
e-lo Aug 12, 2024
9049a21
fix: subprojects is _subprojects
e-lo Aug 12, 2024
10f2dd4
Fix: process multiple timespans, not single timespan
e-lo Aug 12, 2024
f55fcf0
remove agency raw name -not needed
e-lo Aug 15, 2024
3916b41
leverage uniqueness reusable check rather than custom
e-lo Aug 15, 2024
6933c75
Add geographic-filter-on-read capability; start chunking
e-lo Aug 15, 2024
aed82ec
lint...
e-lo Aug 15, 2024
6828330
Fill empty "name" values with "unknown"
e-lo Aug 16, 2024
60d7ab9
changes copy to deepcopy()
e-lo Aug 19, 2024
e0427f5
Generates link and node ids based on available range rather than a sc…
e-lo Aug 19, 2024
55c3350
Add conversion of complex link properties on I/O
e-lo Aug 19, 2024
777f9e1
Document network wrangler network format. (#329)
e-lo Aug 21, 2024
1f8e263
small bug fix - erroneous copy
e-lo Aug 21, 2024
a0e7ec3
Merge branch 'selection-refactor' of https://github.com/wsp-sag/netwo…
e-lo Aug 21, 2024
754b966
Passing tests for converting v0 <-->v1 scoped values
e-lo Aug 23, 2024
dde7540
Default to "any" mode when project is link deletion
e-lo Aug 23, 2024
fc35831
Add validation scripts / modernize bin dir
e-lo Aug 27, 2024
6f82ec2
add docs on validating networks
e-lo Aug 27, 2024
c0b4581
Project card list default is None, not a mutable object.
e-lo Aug 27, 2024
f21f6fb
Propagate offset distance parameterizatio to a few more methods.
e-lo Aug 27, 2024
7b8d6f7
Format installation tips
e-lo Aug 27, 2024
091ef2e
Fix error code for existing value.
e-lo Aug 27, 2024
3b922b7
Update gtfs data model "stop_id" is a valid "model_node_id" (#365)
e-lo Aug 27, 2024
71199d2
Write out scoped items from object not dict
e-lo Aug 28, 2024
49ddfe3
lint
e-lo Aug 28, 2024
3b68343
Enforce GeoSeries for ML_Geometry
e-lo Sep 3, 2024
b7b3b91
Fix timespan queries; Add applied project to roadway and transit feat…
e-lo Sep 3, 2024
7f1b2e8
Update service addition name; add tests
e-lo Sep 4, 2024
f3c0d21
change default for clean_shapes/routes to False
e-lo Sep 4, 2024
fd6d352
Refactor add_route()
e-lo Sep 5, 2024
62c27f2
Debugged adding transit - passing test and ready to be tested more.
e-lo Sep 9, 2024
b8488f7
Merge branch 'selection-refactor' into add-delete-transit-projects
e-lo Sep 9, 2024
b6d0aa1
add var to doc-string to pass linting tests
e-lo Sep 9, 2024
7eb3789
Merge branch 'add-delete-transit-projects' of https://github.com/wsp-…
e-lo Sep 9, 2024
67dc0ae
Fix: allow timespans over midnight (#377)
e-lo Sep 10, 2024
beb00fa
Update pandera requirement > 0.19
e-lo Sep 10, 2024
063d3ab
Instrument profiling with pytest-profile
e-lo Sep 10, 2024
ae24687
Add pydantic only (no pandera) validation wrapper validate_call_pyd
e-lo Sep 10, 2024
6c0af39
Rework profile tests to benchmark tests
e-lo Sep 11, 2024
346067d
Fix roadway write functional signature bug
e-lo Sep 11, 2024
49f207c
Add resiliency to validation for lists vs series
e-lo Sep 11, 2024
f9cddf3
Make error for missing nodes for new links more obvious
e-lo Sep 11, 2024
4fdd29b
Make errors in IDs more obvious; fix bad project card
e-lo Sep 11, 2024
5516885
Fix bug in time comparison to make sure it is elementwise
e-lo Sep 11, 2024
ab302b6
Add benchmark tests and post PR comments c.t. base
e-lo Sep 12, 2024
889da7e
upgrade python for tests; reorder pytest commands
e-lo Sep 12, 2024
5bf40e6
add ability to have project be a prereq for multiple projects
e-lo Sep 12, 2024
e1cd550
fix issues in transit line addition
yueshuaing Sep 23, 2024
17a6563
update docstring
yueshuaing Sep 23, 2024
df1c09b
check if any roadway deletions break transit shapes
yueshuaing Sep 23, 2024
346cad0
update docstring
yueshuaing Sep 23, 2024
9a137ca
execute pycode in wrangler card
yueshuaing Sep 23, 2024
f15e41b
Merge pull request #374 from wsp-sag/add-delete-transit-projects
yueshuaing Sep 23, 2024
b29d84b
Merge branch 'selection-refactor' into address-performance
yueshuaing Sep 23, 2024
de7a7f1
Revert "Merge branch 'selection-refactor' into address-performance"
yueshuaing Sep 23, 2024
9f6b176
Reapply "Merge branch 'selection-refactor' into address-performance"
yueshuaing Sep 24, 2024
a5af824
remove duplicate parameter
yueshuaing Sep 24, 2024
8676793
Merge pull request #378 from wsp-sag/address-performance
yueshuaing Sep 24, 2024
48f8449
fix bug in set and list comparison
yueshuaing Sep 24, 2024
8671afa
Add Configurability, Scenario Config, and Scenario Serialization (#379)
e-lo Sep 25, 2024
b6e4f13
Fix broken links in documentation so it builds
e-lo Sep 25, 2024
e7326c6
fix color issues to improve visibility
e-lo Sep 25, 2024
5bc9440
Fix bug from merge
e-lo Sep 25, 2024
466c6e9
fix bugs found in applying ml project cards
yueshuaing Sep 25, 2024
57458b1
add load_scenario()
e-lo Sep 26, 2024
3c38fa8
Merge branch 'selection-refactor' of https://github.com/wsp-sag/netwo…
e-lo Sep 26, 2024
e8fb931
Condition transit connectivity checks on their being a transit network.
e-lo Sep 26, 2024
eb7f43c
Clean up tests from merging errors.
e-lo Sep 26, 2024
376035c
add extra route attributes to standard transit feed
yueshuaing Sep 27, 2024
9f4db70
use node indices to check if they are used by any links
yueshuaing Sep 27, 2024
131e2ab
add pycode to roadway card types
yueshuaing Sep 30, 2024
9843c3a
use dot notation to access attributes of scoped link property
yueshuaing Sep 30, 2024
fed524b
fix bugs in ml and ml connector creation
yueshuaing Sep 30, 2024
aec6669
quick fix for metcouncil pre-release
yueshuaing Sep 30, 2024
9d814d4
timespan is a tuple, not string
e-lo Sep 30, 2024
ade3130
Implement functionality for project card to dictate how to handle sco…
e-lo Sep 30, 2024
91dad74
YAML reads timespan as string
yueshuaing Sep 30, 2024
b11767a
Update contribution guidelines and github issue and pull request temp…
e-lo Sep 30, 2024
7356a70
Update Design and Installation documentation
e-lo Sep 30, 2024
da04aef
Merge branch 'selection-refactor' of https://github.com/wsp-sag/netwo…
e-lo Sep 30, 2024
2909a6e
add mermaid to mkdocs requirements
e-lo Sep 30, 2024
d1eacb6
add mermaid to mkdocs - in pyproject.toml too!
e-lo Sep 30, 2024
8d2b894
Remove docker stuffs
e-lo Sep 30, 2024
9e4ee9b
add tested environment
e-lo Oct 1, 2024
466f3f5
use concat_with_attr in transit route addition
yueshuaing Oct 1, 2024
ace4c7c
add test for bugs find in writing out scenario
yueshuaing Oct 1, 2024
e6319f5
add load_scenario to __init__
yueshuaing Oct 4, 2024
a625310
v1_row can be a mix of dictionary and scoped link property
yueshuaing Oct 4, 2024
4fbdc24
add a missing line back to _v1_to_v0_scoped_link_property
yueshuaing Oct 4, 2024
adfe7df
Resolve settings to pyproject.toml; Bump requirements versions
e-lo Oct 7, 2024
6ed3241
Use include-markdown plugin
e-lo Oct 7, 2024
389d9aa
Resolve stricter mypy and ruff errors.
e-lo Oct 7, 2024
d843d57
Small bug fixes
e-lo Oct 7, 2024
87c0f9c
Typos in logging
e-lo Oct 7, 2024
5d091da
Minor fixes in tests.
e-lo Oct 9, 2024
cff2287
Minor bug fixes and cleanup
e-lo Oct 10, 2024
c7d9fe2
Clean up some notebooks/ fix bug in link_shapes_df
e-lo Oct 10, 2024
e37049f
revert the quick fix in metcouncil prerelease
yueshuaing Oct 10, 2024
87e0e5c
ml related updates
yueshuaing Oct 10, 2024
067f22e
use indices to check if any missing nodes
yueshuaing Oct 10, 2024
6ee24e5
add scenario tests
yueshuaing Oct 11, 2024
8f29484
Fix bug in selecting by name; Move errors; Fix minnehaha pkwy query; …
e-lo Oct 12, 2024
9e6a17a
Merge branch 'selection-refactor' of https://github.com/wsp-sag/netwo…
e-lo Oct 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .coverage
Binary file not shown.
20 changes: 9 additions & 11 deletions .github/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
## What existing problem does the pull request solve and why should we include it?
# Pull Request

## What existing problem does the pull request solve and why should we include it?

## What is the testing plan?

*Demonstrate the code is solid by discussing how results are verified and covered by tests*

- [ ] Code for this PR is covered in tests
- [ ] Code passes all existing tests
- [ ] Code for this PR is covered in tests
- [ ] Code passes all existing tests

## Code formatting

*Code should be PEP8 compliant before merging by running a package like [`black`](https://pypi.org/project/black/)*

- [ ] Code linted
- [ ] Code linted

## Applicable Issues

*Please do not create a Pull Request without creating an issue first.*

*Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes.*


#### Issues List

- closes...
- closes...


- closes...
- closes...
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,33 @@ assignees: ''
---

## Describe the bug
A clear and concise description of what the bug is or the error code you got. e.g.
```python

A clear and concise description of what the bug is or the error code you got. e.g.

```python
KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'
```

## To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

### Failing tests

- [ ] No applicable test failed, need to create.
- [ ]
- [ ]

### Triggering line of code


### Thoughts on resolution

### Full stack trace


### Environment

Operating system:
Expand Down
15 changes: 10 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,30 @@ assignees: ''
---

### User Story

*As a ...insert type of user... I'd like to ...insert desired feature or behavior...*

### Priority
### Priority

### Level of Effort

### Resolution Ideas

### Project

*Is there a funder or project associated with this feature?*

### Who should be involved?
Implementer:
Commenters:
Users:
Reviewers:

Implementer:
Commenters:
Users:
Reviewers:

### Risk

*Will this potentially break anything?*

#### Tests

*What are relevant tests or what tests need to be created in order to determine that this issue is complete?*
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish Python Package 📦 to PyPI and TestPyPI
on:
push:
branches: [main]
release:
types: [created]
workflow_dispatch: # Manual trigger for both PyPI and TestPyPI
inputs:
publish_target:
description: 'Publish Target (pypi/testpypi)'
required: true
default: 'testpypi'
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'pypi')
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/network_wrangler
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'testpypi')
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/gmnspy
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
64 changes: 50 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,73 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Document branch
run: echo ${{ github.ref_name }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.tests.txt
- name: Lint
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install package
run: |
pip install -e .[test]
- name: Test with pytest
- name: Run Ruff
run: ruff check --output-format=github .
- name: Run tests with coverage and benchmarking
run: |
pytest -s -m "not skipci"
- name: Configure Git user
pytest --junitxml=pytest.xml --benchmark-save=pr_benchmark --benchmark-json=pr_benchmark.json --cov-report=term-missing:skip-covered --cov=network_wrangler tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
if: github.event_name == 'pull_request'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
- name: If a pull request, add a comment about coverage
if: github.event_name == 'pull_request'
uses: coroo/[email protected]
- name: Retrieve benchmark results from base branch
if: github.event_name == 'pull_request'
id: compare
run: |
git checkout ${{ github.event.pull_request.base.ref }}
if [ -f "tests/.benchmarks/benchmark_results.json" ]; then
cp tests/.benchmarks/benchmark_results.json base_benchmark.json
echo "::set-output name=benchmark_exists::true"
else
echo "::set-output name=benchmark_exists::false"
fi
- name: Compare benchmarks
if: steps.compare.outputs.benchmark_exists == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
pytest-benchmark compare base_benchmark.json pr_benchmark.json --csv=comparison.csv --json=comparison.json --histogram=histogram.png

- name: Post comparison comment on pull request
if: steps.compare.outputs.benchmark_exists == 'true'
uses: marocchino/sticky-pull-request-comment@v2
with:
header: 'Benchmark Comparison'
message: |
## Benchmark Results
![Benchmark Comparison](./histogram.png)

| Test name | PR Benchmark | Base Benchmark | Difference |
| --------- | ------------ | -------------- | ---------- |
```bash
pytest-benchmark compare base_benchmark.json pr_benchmark.json --csv --diff
```
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@

# Temp and test cache
scratch/*
tests/temp/
tests/temp/*
scratch/*
*.mbtiles
*.geojson
.temp
.pytest_cache
*.bak
.cache
cache
tests/t_*
tests/*.txt
tests/out/**
tests/out/**/**
wranglertest/
.coverage
coverage.xml
prof/*

# Logs
*.log
scenario_log.txt
Expand Down Expand Up @@ -65,4 +73,5 @@ env/
.project
.pydevproject
.settings
.vscode
*.hubstorinfo
6 changes: 6 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ MD013: false

# Remove "no emphasis as heading"
MD036: false

# Remove "no first line must by h1" b/c sometimes importing from other sources
MD041: false

# Code block style - want to be able to use fenced code blocks to apply coloring
MD046: false
27 changes: 18 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.8
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
# Run the linter.
- id: ruff
types_or: [ python ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
Expand All @@ -20,6 +23,12 @@ repos:
- id: requirements-txt-fixer
- id: mixed-line-ending
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
rev: v0.34.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
additional_dependencies: [pyyaml]
hooks:
- id: markdownlint
- id: mypy
exclude: 'tests/.*'
3 changes: 0 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Contributing to Network Wrangler


## Roles


## How to Contribute


### Setup

1. Make sure you have a [GitHub](https://github.com/) account.
Expand Down
Loading
Loading